fix the remaining refactoring problems
This commit is contained in:
1 parent
bc08ea9630
commit
b3a0249475
3 files changed
+6
-4
No files matched your search
+2
-1
@@ -12,6 +12,7 @@ __all__ = ['Script', 'NotFoundError', 'set_debug_function', '_quick_complete']
|
||||
import re
|
||||
import os
|
||||
|
||||
import parsing
|
||||
import parsing_representation as pr
|
||||
import dynamic
|
||||
import imports
|
||||
@@ -188,7 +189,7 @@ class Script(object):
|
||||
return scopes
|
||||
|
||||
def _get_under_cursor_stmt(self, cursor_txt):
|
||||
r = pr.Parser(cursor_txt, no_docstr=True)
|
||||
r = parsing.Parser(cursor_txt, no_docstr=True)
|
||||
try:
|
||||
stmt = r.module.statements[0]
|
||||
except IndexError:
|
||||
|
||||
Reference in new issue
Block a user