mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Add dead imports of modules that are "magically" imported.
This commit is contained in:
parent
bbe500e5d3
commit
6cd441d129
2 changed files with 11 additions and 0 deletions
|
@ -53,6 +53,11 @@ def parseString(string, handler, errorHandler=ErrorHandler()):
|
|||
|
||||
default_parser_list = ["xml.sax.expatreader"]
|
||||
|
||||
# tell modulefinder that importing sax potentially imports expatreader
|
||||
_false = 0
|
||||
if _false:
|
||||
import xml.sax.expatreader
|
||||
|
||||
import os, string, sys
|
||||
if os.environ.has_key("PY_SAX_PARSER"):
|
||||
default_parser_list = string.split(os.environ["PY_SAX_PARSER"], ",")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue