summaryrefslogtreecommitdiffstats
path: root/Lib/xml
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-07-30 22:41:23 (GMT)
committerFred Drake <fdrake@acm.org>2001-07-30 22:41:23 (GMT)
commitc974bf4dc2031e8af5c64ac968a4a19054f5b097 (patch)
tree950144c51adc4972fe1fea1980264270a4797c65 /Lib/xml
parent0eb1115f4415593861a85aad3c7d12081252c866 (diff)
downloadcpython-c974bf4dc2031e8af5c64ac968a4a19054f5b097.zip
cpython-c974bf4dc2031e8af5c64ac968a4a19054f5b097.tar.gz
cpython-c974bf4dc2031e8af5c64ac968a4a19054f5b097.tar.bz2
Get the whitespace right!
Diffstat (limited to 'Lib/xml')
-rw-r--r--Lib/xml/sax/expatreader.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/xml/sax/expatreader.py b/Lib/xml/sax/expatreader.py
index 7c2bb89..5473b36 100644
--- a/Lib/xml/sax/expatreader.py
+++ b/Lib/xml/sax/expatreader.py
@@ -9,17 +9,17 @@ from xml.sax._exceptions import *
# xml.parsers.expat does not raise ImportError in Jython
import sys
-if sys.platform[ : 4] == "java":
+if sys.platform[:4] == "java":
raise SAXReaderNotAvailable("expat not available in Java", None)
del sys
try:
from xml.parsers import expat
except ImportError:
- raise SAXReaderNotAvailable("expat not supported",None)
+ raise SAXReaderNotAvailable("expat not supported", None)
else:
if not hasattr(expat, "ParserCreate"):
- raise SAXReaderNotAvailable("expat not supported",None)
+ raise SAXReaderNotAvailable("expat not supported", None)
from xml.sax import xmlreader, saxutils, handler
AttributesImpl = xmlreader.AttributesImpl