Skip to content
This repository
Browse code

fix for api class problems

  • Loading branch information...
commit afad39539ac48907605cb2e39561c39f66fb8b70 1 parent 95eab8e
Dave Halter authored November 18, 2012

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  jedi/api_classes.py
6  jedi/api_classes.py
@@ -34,10 +34,10 @@ def __init__(self, definition, start_pos):
34 34
         if not isinstance(definition, keywords.Keyword):
35 35
             par = definition
36 36
             while par is not None:
37  
-                if not par.isinstance(
38  
-                            parsing.Flow, parsing.Statement, parsing.Import,
39  
-                            evaluate.Array, parsing.Name):
  37
+                try:
40 38
                     self.path.insert(0, par.name)
  39
+                except AttributeError:
  40
+                    pass
41 41
                 par = par.parent()
42 42
 
43 43
     @property

0 notes on commit afad395

Please sign in to comment.
Something went wrong with that request. Please try again.