From: Fred Drake Date: Mon, 30 Jul 2001 22:41:23 +0000 (+0000) Subject: Get the whitespace right! X-Git-Tag: v2.2a3~919 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c974bf4dc2031e8af5c64ac968a4a19054f5b097;p=thirdparty%2FPython%2Fcpython.git Get the whitespace right! --- diff --git a/Lib/xml/sax/expatreader.py b/Lib/xml/sax/expatreader.py index 7c2bb899c498..5473b364544f 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