forked from VimPlug/jedi
PyFuzzyParser should not be called with no_docstr=True and source_path
This commit is contained in:
@@ -195,7 +195,7 @@ class Script(object):
|
|||||||
return scopes
|
return scopes
|
||||||
|
|
||||||
def _get_under_cursor_stmt(self, cursor_txt):
|
def _get_under_cursor_stmt(self, cursor_txt):
|
||||||
r = parsing.PyFuzzyParser(cursor_txt, self.source_path, no_docstr=True)
|
r = parsing.PyFuzzyParser(cursor_txt, no_docstr=True)
|
||||||
try:
|
try:
|
||||||
stmt = r.module.statements[0]
|
stmt = r.module.statements[0]
|
||||||
except IndexError:
|
except IndexError:
|
||||||
|
|||||||
Reference in New Issue
Block a user