]> granicus.if.org Git - python/commitdiff
Get the whitespace right!
authorFred Drake <fdrake@acm.org>
Mon, 30 Jul 2001 22:41:23 +0000 (22:41 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 30 Jul 2001 22:41:23 +0000 (22:41 +0000)
Lib/xml/sax/expatreader.py

index 7c2bb899c498d4aeb6f5e2e247a5ba76fb9d4331..5473b364544f27f037b622a221e1c4497f9cf577 100644 (file)
@@ -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