Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix for api class problems

  • Loading branch information...
commit afad39539ac48907605cb2e39561c39f66fb8b70 1 parent 95eab8e
@davidhalter authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 jedi/api_classes.py
View
6 jedi/api_classes.py
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.