module name should have 0, 0 start/end_pos
This commit is contained in:
1 parent
d4ff98aee2
commit
51468b1e09
1 file changed
+2
-1
@@ -369,8 +369,9 @@ class SubModule(Scope, Module):
|
||||
self.path)
|
||||
# remove PEP 3149 names
|
||||
string = re.sub('\.[a-z]+-\d{2}[mud]{0,3}$', '', r.group(1))
|
||||
# positions are not real therefore choose (0, 0)
|
||||
names = [(string, (0, 0))]
|
||||
self._name = Name(self, names, self.start_pos, self.end_pos,
|
||||
self._name = Name(self, names, (0, 0), (0, 0),
|
||||
self.use_as_parent)
|
||||
return self._name
|
||||
|
||||
|
||||
Reference in new issue
Block a user