summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/xmlrpclib.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/xmlrpclib.py b/Lib/xmlrpclib.py
index 3524a45..4e98c4c 100644
--- a/Lib/xmlrpclib.py
+++ b/Lib/xmlrpclib.py
@@ -361,6 +361,8 @@ else:
try:
from xml.parsers import expat
+ if not hasattr(expat, "ParserCreate"):
+ raise ImportError, "ParserCreate"
except ImportError:
ExpatParser = None
else: