1
0
forked from VimPlug/jedi

new api problems - fixes #62, #63

This commit is contained in:
David Halter
2012-11-17 23:06:39 +01:00
parent cf233108d4
commit 4adcc774c4
2 changed files with 12 additions and 3 deletions

View File

@@ -26,9 +26,9 @@ class BaseOutput(object):
self.path = []
par = definition
while par is not None:
if not isinstance(self.stripped_definition,
(parsing.Flow, parsing.Statement, parsing.Import,
evaluate.Array, parsing.Name)):
if not par.isinstance(
parsing.Flow, parsing.Statement, parsing.Import,
evaluate.Array, parsing.Name):
self.path.insert(0, par.name)
par = par.parent()

View File

@@ -63,3 +63,12 @@ def example(a):
#? str()
example('')
# -----------------
# various regression tests
# -----------------
#62
import threading
#? ['_Verbose', '_VERBOSE']
threading._Verbose