mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Stop trying to use _xmlplus in the xml module. Closes #11164.
Patch by Arfrever Frehtes Taifersar Arahesis.
This commit is contained in:
parent
8269a44d50
commit
2f48d892d4
9 changed files with 10 additions and 105 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue