Fix: the parent setting of deep_ast_copy worked the wrong way.

This commit is contained in:
Dave Halter committed 2016-01-07 18:52:06 +01:00
1 parent 06cb82830a
commit 379eb440cd
4 files changed
+12 -15

No files matched your search

+2 -2
View File
@@ -38,9 +38,9 @@ class IterableWrapper(tree.Base):
@memoize_default()
def _get_names_dict(self, names_dict):
builtin_methods = {}
for cls in type(self).mro():
for cls in reversed(type(self).mro()):
try:
builtin_methods = dict(builtin_methods, **cls.builtin_methods)
builtin_methods.update(cls.builtin_methods)
except AttributeError:
pass