Skip to content

Commit

Permalink
new api problems - fixes #62, #63
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhalter committed Nov 17, 2012
1 parent cf23310 commit 4adcc77
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jedi/api_classes.py
Expand Up @@ -26,9 +26,9 @@ def __init__(self, definition, start_pos):
self.path = [] self.path = []
par = definition par = definition
while par is not None: while par is not None:
if not isinstance(self.stripped_definition, if not par.isinstance(
(parsing.Flow, parsing.Statement, parsing.Import, parsing.Flow, parsing.Statement, parsing.Import,
evaluate.Array, parsing.Name)): evaluate.Array, parsing.Name):
self.path.insert(0, par.name) self.path.insert(0, par.name)
par = par.parent() par = par.parent()


Expand Down
9 changes: 9 additions & 0 deletions test/completion/std.py
Expand Up @@ -63,3 +63,12 @@ def example(a):


#? str() #? str()
example('') example('')

# -----------------
# various regression tests
# -----------------

#62
import threading
#? ['_Verbose', '_VERBOSE']
threading._Verbose

0 comments on commit 4adcc77

Please sign in to comment.