summaryrefslogtreecommitdiff
path: root/Lib/modulefinder.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2011-05-09 08:10:38 +0200
committerMartin v. Löwis <martin@v.loewis.de>2011-05-09 08:10:38 +0200
commite642bef9e591dff62e9198d5f3a4c6164de14989 (patch)
treeeb7ed7cd383bebec83b19fe0b5a227173c9382f5 /Lib/modulefinder.py
parent430fa24585b781acce2da7555b181ca67ea3c099 (diff)
parentce962380a970deda75f57e810b131676f4c59613 (diff)
downloadcpython-e642bef9e591dff62e9198d5f3a4c6164de14989.tar.gz
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 646a7852ba..f033ba98ef 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):