]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Only output the code to alias properties if the names aren't the same.
authorJack Jansen <jack.jansen@cwi.nl>
Tue, 22 Aug 2000 20:34:35 +0000 (20:34 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Tue, 22 Aug 2000 20:34:35 +0000 (20:34 +0000)
Mac/scripts/gensuitemodule.py

index 689aeaa391547819a3551e428571cb6c8e3c65da..b68def78d06297014906337d01b8324ef196f44b 100644 (file)
@@ -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: