From e7e632ab6b9edda6836de34b17ac85a318c8016c Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 14 Sep 1998 16:02:28 +0000 Subject: [PATCH] Nannified. --- Tools/freeze/modulefinder.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Tools/freeze/modulefinder.py b/Tools/freeze/modulefinder.py index 4985d52f2b9..e406c6aeec6 100644 --- a/Tools/freeze/modulefinder.py +++ b/Tools/freeze/modulefinder.py @@ -32,9 +32,9 @@ # A Public interface def AddPackagePath(packagename, path): - paths = packagePathMap.get(packagename, []) - paths.append(path) - packagePathMap[packagename] = paths + paths = packagePathMap.get(packagename, []) + paths.append(path) + packagePathMap[packagename] = paths class Module: @@ -302,8 +302,8 @@ def load_package(self, fqname, pathname): m.__file__ = pathname m.__path__ = [pathname] - # As per comment at top of file, simulate runtime __path__ additions. - m.__path__ = m.__path__ + packagePathMap.get(fqname, []) + # As per comment at top of file, simulate runtime __path__ additions. + m.__path__ = m.__path__ + packagePathMap.get(fqname, []) fp, buf, stuff = self.find_module("__init__", m.__path__) self.load_module(fqname, fp, buf, stuff)