1
0
forked from VimPlug/jedi

refactor fast_parent_copy, use new_elements_default to hand in a dictionary, that contains all the generated duplicates.

This commit is contained in:
Dave Halter
2014-08-21 13:17:33 +02:00
parent 3cf8bfa8e1
commit 0ef030848d
3 changed files with 24 additions and 20 deletions

View File

@@ -43,11 +43,12 @@ def fooooo(obj):
def fooooo2(obj):
if isinstance(obj, datetime.datetime):
if isinstance(obj, datetime.date):
return obj
else:
return 1
a
# In earlier versions of Jedi, this returned both datetime and int, but now
# Jedi does flow checks and realizes that the top return isn't executed.
#? int()