PyFuzzyParser should not be called with no_docstr=True and source_path
This commit is contained in:
1 parent
303672f037
commit
4814c13e29
1 file changed
+1
-1
+1
-1
@@ -195,7 +195,7 @@ class Script(object):
|
||||
return scopes
|
||||
|
||||
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:
|
||||
stmt = r.module.statements[0]
|
||||
except IndexError:
|
||||
|
||||
Reference in new issue
Block a user