mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
fhdl/namer: do not reference objects with __del__ methods to avoid uncollectable cycles
This commit is contained in:
parent
2c375e900f
commit
7230508e7c
1 changed files with 2 additions and 0 deletions
|
@ -34,6 +34,8 @@ def trace_back(name=None):
|
|||
obj = frame.f_locals["self"]
|
||||
except KeyError:
|
||||
obj = None
|
||||
if obj is not None and hasattr(obj, "__del__"):
|
||||
obj = None
|
||||
if obj is None:
|
||||
modules = frame.f_globals["__name__"]
|
||||
modules = modules.split(".")
|
||||
|
|
Loading…
Reference in a new issue