Skip to content

Commit

Permalink
precautionary fix without test (sith.py didn't reproduce it), in exec…
Browse files Browse the repository at this point in the history
…ution detection.
  • Loading branch information
davidhalter committed Apr 30, 2014
1 parent 44d8abb commit 5ed887c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jedi/evaluate/finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import sys

from jedi._compatibility import hasattr, unicode, u, reraise
from jedi.parser import representation as pr
from jedi.parser import representation as pr, tokenize
from jedi import debug
from jedi import common
from jedi import settings
Expand Down Expand Up @@ -132,7 +132,7 @@ def _name_is_array_assignment(self, name):
if name.parent.isinstance(pr.Statement):
def is_execution(calls):
for c in calls:
if isinstance(c, (unicode, str)):
if isinstance(c, (unicode, str, tokenize.Token)):
continue
if c.isinstance(pr.Array):
if is_execution(c):
Expand Down

0 comments on commit 5ed887c

Please sign in to comment.