diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2002-08-07 15:52:44 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-08-07 15:52:44 (GMT) |
commit | 7ff034b65b85265989b8fd256febc88ae9e8947d (patch) | |
tree | e38fc915e5070b7e28408eac1cee711e7fc7aa58 | |
parent | 3cfdc3402e2ede832ddcdac1d22491184b3d8765 (diff) | |
download | cpython-7ff034b65b85265989b8fd256febc88ae9e8947d.zip cpython-7ff034b65b85265989b8fd256febc88ae9e8947d.tar.gz cpython-7ff034b65b85265989b8fd256febc88ae9e8947d.tar.bz2 |
Fixed incorrect logic in determining whether we should initialize
the classes' attribute list.
-rw-r--r-- | Mac/scripts/gensuitemodule.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Mac/scripts/gensuitemodule.py b/Mac/scripts/gensuitemodule.py index 02fe8b7..f08a4be 100644 --- a/Mac/scripts/gensuitemodule.py +++ b/Mac/scripts/gensuitemodule.py @@ -295,7 +295,7 @@ def compileaete(aete, resinfo, fname): # Generate property dicts and element dicts for all types declared in this module fp.write("def getbaseclasses(v):\n") - fp.write("\tif hasattr(v, '_superclassnames') and v._superclassnames:\n") + fp.write("\tif hasattr(v, '_superclassnames') and not hasattr(v, '_propdict'):\n") fp.write("\t\tv._propdict = {}\n") fp.write("\t\tv._elemdict = {}\n") fp.write("\t\tfor superclass in v._superclassnames:\n") @@ -304,7 +304,6 @@ def compileaete(aete, resinfo, fname): fp.write("\t\t\tv._elemdict.update(getattr(eval(superclass), '_privelemdict', {}))\n") fp.write("\t\tv._propdict.update(v._privpropdict)\n") fp.write("\t\tv._elemdict.update(v._privelemdict)\n") - fp.write("\t\tv._superclassnames = None\n") fp.write("\n") fp.write("import StdSuites\n") if allprecompinfo: |