summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-03-29 15:24:25 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-03-29 15:24:25 (GMT)
commit5b63acd31e0e40c1a9a9e9762905b0054ff37994 (patch)
tree763a6e10d4c0fa64797f5311491a3cbeb0f7e5d9 /Tools
parent672fbf519568bc295aa64992dcbabe0eebccb5fc (diff)
downloadcpython-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 'Tools')
-rw-r--r--Tools/bgen/bgen/bgenGenerator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/bgen/bgen/bgenGenerator.py b/Tools/bgen/bgen/bgenGenerator.py
index 3da3958..3bdfb72 100644
--- a/Tools/bgen/bgen/bgenGenerator.py
+++ b/Tools/bgen/bgen/bgenGenerator.py
@@ -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'):