Permalink
Browse files

a comment...

  • Loading branch information...
1 parent 9f1f230 commit 51cfb4371655b03a059a251209c2797a0152ce5c @davidhalter committed Oct 21, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 jedi/api.py
View
@@ -451,7 +451,9 @@ def check_cache():
return None, 0
old_call, old_index = check_user_stmt(old_stmt)
if old_call:
- if str(old_call) == str(call):
+ # compare repr because that should definitely be the same.
+ # Otherwise the whole thing is out of sync.
+ if repr(old_call) == repr(call):
# return the index of the part_parser
return old_call, index
return None, 0

0 comments on commit 51cfb43

Please sign in to comment.