summaryrefslogtreecommitdiffstats
path: root/Mac/scripts/gensuitemodule.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2000-08-22 20:34:35 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2000-08-22 20:34:35 (GMT)
commit9d6d2c0c972b296eeb93413e08aa913f71fa11ba (patch)
tree36ae0bef003f9c3d718c079143662ca4b569d058 /Mac/scripts/gensuitemodule.py
parent93ff482c21ec618075621e43f3b313313a6da019 (diff)
downloadcpython-9d6d2c0c972b296eeb93413e08aa913f71fa11ba.zip
cpython-9d6d2c0c972b296eeb93413e08aa913f71fa11ba.tar.gz
cpython-9d6d2c0c972b296eeb93413e08aa913f71fa11ba.tar.bz2
Only output the code to alias properties if the names aren't the same.
Diffstat (limited to 'Mac/scripts/gensuitemodule.py')
-rw-r--r--Mac/scripts/gensuitemodule.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Mac/scripts/gensuitemodule.py b/Mac/scripts/gensuitemodule.py
index 689aeaa..b68def7 100644
--- a/Mac/scripts/gensuitemodule.py
+++ b/Mac/scripts/gensuitemodule.py
@@ -670,6 +670,8 @@ class ObjectCompiler:
if self.namemappers[0].hascode('property', code):
# plural forms and such
othername, dummy, dummy = self.namemappers[0].findcodename('property', code)
+ if pname == othername:
+ return
if self.fp:
self.fp.write("\n%s = %s\n"%(pname, othername))
else: