1
0
forked from VimPlug/jedi

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

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

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