[Python-checkins] python/dist/src/Mac/scripts gensuitemodule.py,1.32,1.33
jackjansen@users.sourceforge.net
jackjansen@users.sourceforge.net
Sun, 23 Mar 2003 14:05:55 -0800
- Previous message: [Python-checkins] python/dist/src/Objects object.c,2.205,2.206
- Next message: [Python-checkins] python/dist/src/Lib/plat-mac/lib-scriptpackages/CodeWarrior CodeWarrior_suite.py,1.1,1.2 Metrowerks_Shell_Suite.py,1.1,1.2 Required.py,1.1,1.2 Standard_Suite.py,1.1,1.2 __init__.py,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Mac/scripts
In directory sc8-pr-cvs1:/tmp/cvs-serv27995
Modified Files:
gensuitemodule.py
Log Message:
Not all objects have an _propdict and _privpropdict, so cater for that.
Index: gensuitemodule.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/scripts/gensuitemodule.py,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** gensuitemodule.py 21 Mar 2003 16:28:09 -0000 1.32
--- gensuitemodule.py 23 Mar 2003 22:05:53 -0000 1.33
***************
*** 388,392 ****
# Generate property dicts and element dicts for all types declared in this module
fp.write("\ndef getbaseclasses(v):\n")
! fp.write("\tif not v._propdict:\n")
fp.write("\t\tv._propdict = {}\n")
fp.write("\t\tv._elemdict = {}\n")
--- 388,392 ----
# Generate property dicts and element dicts for all types declared in this module
fp.write("\ndef getbaseclasses(v):\n")
! fp.write("\tif not getattr(v, '_propdict', None):\n")
fp.write("\t\tv._propdict = {}\n")
fp.write("\t\tv._elemdict = {}\n")
***************
*** 396,401 ****
fp.write("\t\t\tv._propdict.update(getattr(superclass, '_propdict', {}))\n")
fp.write("\t\t\tv._elemdict.update(getattr(superclass, '_elemdict', {}))\n")
! fp.write("\t\tv._propdict.update(v._privpropdict)\n")
! fp.write("\t\tv._elemdict.update(v._privelemdict)\n")
fp.write("\n")
fp.write("import StdSuites\n")
--- 396,401 ----
fp.write("\t\t\tv._propdict.update(getattr(superclass, '_propdict', {}))\n")
fp.write("\t\t\tv._elemdict.update(getattr(superclass, '_elemdict', {}))\n")
! fp.write("\t\tv._propdict.update(getattr(v, '_privpropdict', {}))\n")
! fp.write("\t\tv._elemdict.update(getattr(v, '_privelemdict', {}))\n")
fp.write("\n")
fp.write("import StdSuites\n")
- Previous message: [Python-checkins] python/dist/src/Objects object.c,2.205,2.206
- Next message: [Python-checkins] python/dist/src/Lib/plat-mac/lib-scriptpackages/CodeWarrior CodeWarrior_suite.py,1.1,1.2 Metrowerks_Shell_Suite.py,1.1,1.2 Required.py,1.1,1.2 Standard_Suite.py,1.1,1.2 __init__.py,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]