Commit ecc4d888 authored by Jack Jansen's avatar Jack Jansen

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

parent f4882da0
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment