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 committed 2014-08-21 13:17:33 +02:00
1 parent 3cf8bfa8e1
commit 0ef030848d
3 files changed
+24 -20

No files matched your search

+2 -1
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()