Only output the code to alias properties if the names aren't the same.

This commit is contained in:
Jack Jansen 2000-08-22 20:34:35 +00:00
parent 93ff482c21
commit 9d6d2c0c97

View 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: