summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-09-10 17:38:20 (GMT)
committerGuido van Rossum <guido@python.org>1996-09-10 17:38:20 (GMT)
commit974e46cc5e7d4c8cab7b0490965020929bf26588 (patch)
tree15658e2bdc915066d1c3e81f165d98e759ada774 /Lib
parent2ea05098eb6e69288b6d78e31115d490b1362ef7 (diff)
downloadcpython-974e46cc5e7d4c8cab7b0490965020929bf26588.zip
cpython-974e46cc5e7d4c8cab7b0490965020929bf26588.tar.gz
cpython-974e46cc5e7d4c8cab7b0490965020929bf26588.tar.bz2
Fix type in loop stripping '__.' from name
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)