Permalink
Browse files

fix for api class problems

  • Loading branch information...
1 parent 95eab8e commit afad39539ac48907605cb2e39561c39f66fb8b70 @davidhalter committed Nov 18, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 jedi/api_classes.py
View
@@ -34,10 +34,10 @@ def __init__(self, definition, start_pos):
if not isinstance(definition, keywords.Keyword):
par = definition
while par is not None:
- if not par.isinstance(
- parsing.Flow, parsing.Statement, parsing.Import,
- evaluate.Array, parsing.Name):
+ try:
self.path.insert(0, par.name)
+ except AttributeError:
+ pass
par = par.parent()
@property

0 comments on commit afad395

Please sign in to comment.