From: Jack Jansen Date: Tue, 22 Aug 2000 20:34:35 +0000 (+0000) Subject: Only output the code to alias properties if the names aren't the same. X-Git-Tag: v2.0b1~308 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9d6d2c0c972b296eeb93413e08aa913f71fa11ba;p=thirdparty%2FPython%2Fcpython.git Only output the code to alias properties if the names aren't the same. --- diff --git a/Mac/scripts/gensuitemodule.py b/Mac/scripts/gensuitemodule.py index 689aeaa39154..b68def78d062 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: