don't use SubModule's in the scope list if it has a parent

This commit is contained in:
David Halter committed 2013-04-17 13:39:02 +04:30
1 parent 9181410c47
commit d82f315ea6
2 files changed
+5

No files matched your search

+1
View File
@@ -392,6 +392,7 @@ class FastParser(use_metaclass(CachedFastParser)):
p = parsing.Parser(parser_code, self.module_path,
self.user_position, offset=(line_offset, 0),
is_fast_parser=True, top_module=self.module)
p.module.parent = self.module
else:
node = nodes.pop(index)
p = node.parser