summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/ni.py2
-rw-r--r--Lib/ni1.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/ni.py b/Lib/ni.py
index fae23a9..fa24d30 100644
--- a/Lib/ni.py
+++ b/Lib/ni.py
@@ -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)
diff --git a/Lib/ni1.py b/Lib/ni1.py
index fae23a9..fa24d30 100644
--- a/Lib/ni1.py
+++ b/Lib/ni1.py
@@ -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)