use __dict__ not func_dict for Python 3 compatibility
This commit is contained in:
parent
655afba17d
commit
bc5a5a63f2
|
@ -138,7 +138,7 @@ def matchkeyword(colitem, keywordexpr):
|
|||
mapped_names.add(name)
|
||||
|
||||
# Add the names attached to the current function through direct assignment
|
||||
for name in colitem.function.func_dict:
|
||||
for name in colitem.function.__dict__:
|
||||
mapped_names.add(name)
|
||||
|
||||
return eval(keywordexpr, {}, KeywordMapping(mapped_names))
|
||||
|
|
Loading…
Reference in New Issue