aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/pnodes.py
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-06-17 13:47:23 +0200
committerUnai Martinez-Corral <38422348+umarcor@users.noreply.github.com>2021-06-17 22:53:27 +0100
commit56f8ca47465a7cc052e80c0ed4bab6fc55eeacba (patch)
tree4fa027a62bdd03be63990980fd12e62a61e8f108 /scripts/pnodes.py
parent019a492504bf6164f1da889258519b220242dfc0 (diff)
downloadghdl-56f8ca47465a7cc052e80c0ed4bab6fc55eeacba.tar.gz
ghdl-56f8ca47465a7cc052e80c0ed4bab6fc55eeacba.tar.bz2
ghdl-56f8ca47465a7cc052e80c0ed4bab6fc55eeacba.zip
Changes to pnodespy.
Diffstat (limited to 'scripts/pnodes.py')
-rwxr-xr-xscripts/pnodes.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/pnodes.py b/scripts/pnodes.py
index 75105b060..94adb01fd 100755
--- a/scripts/pnodes.py
+++ b/scripts/pnodes.py
@@ -76,7 +76,6 @@ class ParseError(Exception):
return ("Parse error at {lr.filename}:{lr.lineno}: {msg}".format(lr=self.lr, msg=self.msg))
-
# Return fields description.
# This is a dictionary. The keys represent the possible format of a node.
# The values are dictionaries representing fields. Keys are fields name, and
@@ -201,7 +200,7 @@ def read_kinds(filename):
name = m.group(1)
if not name.startswith(prefix_range_name):
raise ParseError(lr, "incorrect prefix for subtype")
- name = name[len(prefix_range_name) :]
+ name = name[len(prefix_range_name):]
l = lr.get()
mf = pat_first.match(l)
if not mf:
@@ -235,7 +234,7 @@ def read_kinds(filename):
)
break
raise ParseError(lr, "unhandled line in subtype")
- kinds_ranges[name] = kinds[first : last + 1]
+ kinds_ranges[name] = kinds[first: last + 1]
return (kinds, kinds_ranges)