1
0
forked from VimPlug/jedi

partial is working partially now with the new parser, because invalid statements are not possible anymore (two times **kwargs)

This commit is contained in:
Dave Halter
2014-12-04 14:29:37 +01:00
parent 8f1002218d
commit 478acf8ccf
2 changed files with 6 additions and 2 deletions

View File

@@ -104,7 +104,10 @@ def deep_ast_copy(obj, new_elements_default=None, check_first=False):
# TODO this sucks... we need to change it.
# DOESNT WORK
for unfinished in unfinished_parents:
unfinished.parent = new_elements[unfinished.parent]
try:
unfinished.parent = new_elements[unfinished.parent]
except KeyError: # TODO this keyerror is useless.
pass
return result