Kaydet (Commit) c974bf4d authored tarafından Fred Drake's avatar Fred Drake

Get the whitespace right!

üst 0eb1115f
...@@ -9,17 +9,17 @@ from xml.sax._exceptions import * ...@@ -9,17 +9,17 @@ from xml.sax._exceptions import *
# xml.parsers.expat does not raise ImportError in Jython # xml.parsers.expat does not raise ImportError in Jython
import sys import sys
if sys.platform[ : 4] == "java": if sys.platform[:4] == "java":
raise SAXReaderNotAvailable("expat not available in Java", None) raise SAXReaderNotAvailable("expat not available in Java", None)
del sys del sys
try: try:
from xml.parsers import expat from xml.parsers import expat
except ImportError: except ImportError:
raise SAXReaderNotAvailable("expat not supported",None) raise SAXReaderNotAvailable("expat not supported", None)
else: else:
if not hasattr(expat, "ParserCreate"): if not hasattr(expat, "ParserCreate"):
raise SAXReaderNotAvailable("expat not supported",None) raise SAXReaderNotAvailable("expat not supported", None)
from xml.sax import xmlreader, saxutils, handler from xml.sax import xmlreader, saxutils, handler
AttributesImpl = xmlreader.AttributesImpl AttributesImpl = xmlreader.AttributesImpl
......
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