Skip to content

Commit fdb115f

Browse files
committed
Removed Module.__getattr__
1 parent cd3001c commit fdb115f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

veriloggen/core/module.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -404,15 +404,15 @@ def __getitem__(self, r):
404404
raise NameError("No such variable '%s'" % r)
405405
return v
406406

407-
def __getattr__(self, attr):
408-
try:
409-
return vtypes.VeriloggenNode.__getattr__(self, attr)
410-
except AttributeError as e:
411-
if 'io_variable' in dir(self):
412-
v = self.find_identifier(attr)
413-
if v is not None:
414-
return v
415-
raise e
407+
#def __getattr__(self, attr):
408+
# try:
409+
# return vtypes.VeriloggenNode.__getattr__(self, attr)
410+
# except AttributeError as e:
411+
# if 'io_variable' in dir(self):
412+
# v = self.find_identifier(attr)
413+
# if v is not None:
414+
# return v
415+
# raise e
416416

417417
#---------------------------------------------------------------------------
418418
def copy_params(self, src, prefix=None, postfix=None, exclude=None):

0 commit comments

Comments
 (0)