fix end_pos stuff in parser (no (None, None) end_pos anymore
This commit is contained in:
1 parent
4bb4176296
commit
302d06de85
2 files changed
+6
-2
No files matched your search
@@ -357,6 +357,7 @@ class FastParser(use_metaclass(CachedFastParser)):
|
||||
|
||||
if self.current_node.parent and (isinstance(p.user_scope,
|
||||
pr.SubModule) or p.user_scope is None) \
|
||||
and self.user_position \
|
||||
and p.start_pos <= self.user_position < p.end_pos:
|
||||
p.user_scope = self.current_node.parent.content_scope
|
||||
|
||||
|
||||
Reference in new issue
Block a user