Kaydet (Commit) b855134a authored tarafından Guido van Rossum's avatar Guido van Rossum

Under certain conditions (sometimes triggered by the test suite),

"from xml.parsers import expat" succeeds but the imported expat module
is an empty shell.  Make sure we don't be fooled by that.
üst e37e96df
......@@ -361,6 +361,8 @@ else:
try:
from xml.parsers import expat
if not hasattr(expat, "ParserCreate"):
raise ImportError, "ParserCreate"
except ImportError:
ExpatParser = None
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment