summaryrefslogtreecommitdiffstats
path: root/Lib/modulefinder.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2011-05-09 06:10:38 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2011-05-09 06:10:38 (GMT)
commit867754e3e3c907f87d1bb0282df628deb392cd62 (patch)
tree3a5acb5ba081b355ea94fa237ec940c47c0d4418 /Lib/modulefinder.py
parent8ffaa1049c8e3e18b7615f4eecc9dfd71495f3ba (diff)
parent2f48d892d4036b500f5b79d152b3166b4d205dc9 (diff)
downloadcpython-867754e3e3c907f87d1bb0282df628deb392cd62.zip
cpython-867754e3e3c907f87d1bb0282df628deb392cd62.tar.gz
cpython-867754e3e3c907f87d1bb0282df628deb392cd62.tar.bz2
merge 11164
Diffstat (limited to 'Lib/modulefinder.py')
-rw-r--r--Lib/modulefinder.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/modulefinder.py b/Lib/modulefinder.py
index 646a785..f033ba9 100644
--- a/Lib/modulefinder.py
+++ b/Lib/modulefinder.py
@@ -35,9 +35,10 @@ def AddPackagePath(packagename, path):
replacePackageMap = {}
-# This ReplacePackage mechanism allows modulefinder to work around the
-# way the _xmlplus package injects itself under the name "xml" into
-# sys.modules at runtime by calling ReplacePackage("_xmlplus", "xml")
+# This ReplacePackage mechanism allows modulefinder to work around
+# situations in which a package injects itself under the name
+# of another package into sys.modules at runtime by calling
+# ReplacePackage("real_package_name", "faked_package_name")
# before running ModuleFinder.
def ReplacePackage(oldname, newname):