From ce8df3b4c21779a9c5b9d2252765d5d4b91dea1f Mon Sep 17 00:00:00 2001 From: Alex Mykyta Date: Tue, 14 Apr 2020 20:39:38 -0700 Subject: [PATCH] lint cleanup --- systemrdl/component.py | 2 +- systemrdl/node.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/systemrdl/component.py b/systemrdl/component.py index d7160cd..6cf2280 100644 --- a/systemrdl/component.py +++ b/systemrdl/component.py @@ -157,7 +157,7 @@ def get_scope_path(self, scope_separator="::"): field {} z; } baz, xyz; }; - + ... results in: * Field ``x`` of hierarchical path ``top.foo.x`` was declared in the diff --git a/systemrdl/node.py b/systemrdl/node.py index 06bb38f..87e55e9 100644 --- a/systemrdl/node.py +++ b/systemrdl/node.py @@ -292,7 +292,6 @@ def find_by_path(self, path): pathparts = path.split('.') current_node = self for pathpart in pathparts: - # If parent reference, jump upwards if pathpart == "^": if current_node.parent is not None: