aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2023-02-03 07:22:33 +0100
committerTristan Gingold <tgingold@free.fr>2023-02-03 07:23:52 +0100
commit6311bbaefc7f5ff0c4ce0092b804f2da05ded595 (patch)
treee3b0d28b360f64c132b560485b61ef16ab3d9983 /pyGHDL
parent46a5e8cd1738fef7469a460fe8c5524bbb74439a (diff)
downloadghdl-6311bbaefc7f5ff0c4ce0092b804f2da05ded595.tar.gz
ghdl-6311bbaefc7f5ff0c4ce0092b804f2da05ded595.tar.bz2
ghdl-6311bbaefc7f5ff0c4ce0092b804f2da05ded595.zip
pyGHDL: reformating
Diffstat (limited to 'pyGHDL')
-rw-r--r--pyGHDL/dom/_Translate.py2
-rw-r--r--pyGHDL/lsp/lsp.py2
2 files changed, 1 insertions, 3 deletions
diff --git a/pyGHDL/dom/_Translate.py b/pyGHDL/dom/_Translate.py
index 8bdf221f3..10f24e241 100644
--- a/pyGHDL/dom/_Translate.py
+++ b/pyGHDL/dom/_Translate.py
@@ -502,7 +502,6 @@ def GetGenericsFromChainedNodes(
def GetPortsFromChainedNodes(
nodeChain: Iir,
) -> Generator[PortInterfaceItem, None, None]:
-
furtherIdentifiers = []
port = nodeChain
while port != nodes.Null_Iir:
@@ -544,7 +543,6 @@ def GetPortsFromChainedNodes(
def GetParameterFromChainedNodes(
nodeChain: Iir,
) -> Generator[ParameterInterfaceItem, None, None]:
-
identifiers = []
parameter = nodeChain
while parameter != nodes.Null_Iir:
diff --git a/pyGHDL/lsp/lsp.py b/pyGHDL/lsp/lsp.py
index 32a64b3ea..f552a6234 100644
--- a/pyGHDL/lsp/lsp.py
+++ b/pyGHDL/lsp/lsp.py
@@ -59,7 +59,7 @@ def normalize_rpc_file_uris(rpc):
# Fixes a crash on windows where the underlying ada crashes
# if paths to the same file are given with inconsistent
# capitalization.
- for (key, val) in rpc.items():
+ for key, val in rpc.items():
# recurse into all leaf elements.
if isinstance(val, dict):
normalize_rpc_file_uris(val)