mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
#2503 make singletons compared with "is" not == or !=
Thanks to Wummel for the patch
This commit is contained in:
parent
672fbf5195
commit
5b63acd31e
54 changed files with 140 additions and 141 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue