diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-03-29 15:24:25 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-03-29 15:24:25 (GMT) |
commit | 5b63acd31e0e40c1a9a9e9762905b0054ff37994 (patch) | |
tree | 763a6e10d4c0fa64797f5311491a3cbeb0f7e5d9 /Lib/xml | |
parent | 672fbf519568bc295aa64992dcbabe0eebccb5fc (diff) | |
download | cpython-5b63acd31e0e40c1a9a9e9762905b0054ff37994.zip cpython-5b63acd31e0e40c1a9a9e9762905b0054ff37994.tar.gz cpython-5b63acd31e0e40c1a9a9e9762905b0054ff37994.tar.bz2 |
#2503 make singletons compared with "is" not == or !=
Thanks to Wummel for the patch
Diffstat (limited to 'Lib/xml')
-rw-r--r-- | Lib/xml/sax/expatreader.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/xml/sax/expatreader.py b/Lib/xml/sax/expatreader.py index bb9c294..e6d1902 100644 --- a/Lib/xml/sax/expatreader.py +++ b/Lib/xml/sax/expatreader.py @@ -107,7 +107,7 @@ class ExpatParser(xmlreader.IncrementalParser, xmlreader.Locator): xmlreader.IncrementalParser.parse(self, source) def prepareParser(self, source): - if source.getSystemId() != None: + if source.getSystemId() is not None: self._parser.SetBase(source.getSystemId()) # Redefined setContentHandler to allow changing handlers during parsing |