projects
/
nmigen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0f4c0c
)
tracer: add support for Python 3.7.
author
whitequark
<whitequark@whitequark.org>
Thu, 13 Dec 2018 02:20:00 +0000
(
02:20
+0000)
committer
whitequark
<whitequark@whitequark.org>
Thu, 13 Dec 2018 02:20:00 +0000
(
02:20
+0000)
nmigen/tracer.py
patch
|
blob
|
history
diff --git
a/nmigen/tracer.py
b/nmigen/tracer.py
index e3f9f93d65b428a1bbc0faf79c1ae8da124be27d..c4c83d174268010762a0fcee1b8acd45705eff43 100644
(file)
--- a/
nmigen/tracer.py
+++ b/
nmigen/tracer.py
@@
-14,7
+14,7
@@
def get_var_name(depth=2):
code = frame.f_code
call_index = frame.f_lasti
call_opc = opname[code.co_code[call_index]]
- if call_opc
!= "CALL_FUNCTION" and call_opc != "CALL_FUNCTION_KW"
:
+ if call_opc
not in ("CALL_FUNCTION", "CALL_FUNCTION_KW", "CALL_FUNCTION_EX", "CALL_METHOD")
:
return None
index = call_index + 2