use __dict__ not func_dict for Python 3 compatibility

This commit is contained in:
Benjamin Peterson 2013-05-27 14:04:53 -07:00
parent 655afba17d
commit bc5a5a63f2
1 changed files with 1 additions and 1 deletions

View File

@ -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))