mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +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
|
@ -148,7 +148,7 @@ class FunctionGenerator(BaseFunctionGenerator):
|
|||
for arg in self.argumentList:
|
||||
if arg.flags == ErrorMode or arg.flags == SelfMode:
|
||||
continue
|
||||
if arg.type == None:
|
||||
if arg.type is None:
|
||||
str = 'void'
|
||||
else:
|
||||
if hasattr(arg.type, 'typeName'):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue