Temporarily disable on import completion. Not sure if we're going to do it with the normal parser.

This commit is contained in:
Dave Halter
2014-11-19 13:24:45 +01:00
parent c71646a9a0
commit bb9d6b4832
4 changed files with 12 additions and 5 deletions
+5 -1
View File
@@ -38,7 +38,7 @@ class ModuleNotFound(Exception):
self.name_part = name_part
class ImportWrapper():
class ImportWrapper(pr.Base):
GlobalNamespace = 'TODO PLEASE DELETE ME'
def __init__(self, evaluator, name):
self._evaluator = evaluator
@@ -48,6 +48,10 @@ class ImportWrapper():
self.import_path = self._import.path_for_name(name)
self.is_like_search = False # TODO REMOVE
def get_defined_names(self, on_import_stmt=False):
# TODO not sure if this method is actually necessary.
return []
@memoize_default()
def follow(self, is_goto=False):
if self._evaluator.recursion_detector.push_stmt(self._import):