Kaydet (Commit) 974e46cc authored tarafından Guido van Rossum's avatar Guido van Rossum

Fix type in loop stripping '__.' from name

üst 2ea05098
......@@ -280,7 +280,7 @@ class PackageImporter(ModuleImporter):
p = package
name = name[3:]
while name[:3] in ('__.', '__'):
p = package.__
p = p.__
name = name[3:]
if not name:
return self.finish(package, p, '', fromlist)
......
......@@ -280,7 +280,7 @@ class PackageImporter(ModuleImporter):
p = package
name = name[3:]
while name[:3] in ('__.', '__'):
p = package.__
p = p.__
name = name[3:]
if not name:
return self.finish(package, p, '', fromlist)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment