#2503 make singletons compared with "is" not == or !=

Thanks to Wummel for the patch
This commit is contained in:
Benjamin Peterson 2008-03-29 15:24:25 +00:00
parent 672fbf5195
commit 5b63acd31e
54 changed files with 140 additions and 141 deletions

View file

@ -77,7 +77,7 @@ def pack(x, forcetype = None):
else:
return pack(x).AECoerceDesc(forcetype)
if x == None:
if x is None:
return AE.AECreateDesc('null', '')
if isinstance(x, AEDescType):