summaryrefslogtreecommitdiff
path: root/Mac/scripts
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-03-29 00:08:24 +0000
committerJack Jansen <jack.jansen@cwi.nl>2003-03-29 00:08:24 +0000
commit27a966f71a30b2e4ff732071438eb7dce5514dd0 (patch)
tree88cb28ca4a02252b199dd5881db0ad21220f5289 /Mac/scripts
parente62e0fdc599faab6e891c2831e903074e9204964 (diff)
downloadcpython-27a966f71a30b2e4ff732071438eb7dce5514dd0.tar.gz
Sometimes a class is used as a base class of itself. Obviously there's
something I don't understand, but for now ignore this. Output the file name such that it cannot contain non-ascii characters.
Diffstat (limited to 'Mac/scripts')
-rw-r--r--Mac/scripts/gensuitemodule.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/Mac/scripts/gensuitemodule.py b/Mac/scripts/gensuitemodule.py
index 4eca8af3b6..ab16e9fd87 100644
--- a/Mac/scripts/gensuitemodule.py
+++ b/Mac/scripts/gensuitemodule.py
@@ -409,7 +409,7 @@ def compileaete(aete, resinfo, fname, output=None, basepkgname=None,
fp = open(initfilename, 'w')
MacOS.SetCreatorAndType(initfilename, 'Pyth', 'TEXT')
fp.write('"""\n')
- fp.write("Package generated from %s\n"%fname)
+ fp.write("Package generated from %s\n"%ascii(fname))
if resinfo:
fp.write("Resource %s resid %d %s\n"%(ascii(resinfo[1]), resinfo[0], ascii(resinfo[2])))
fp.write('"""\n')
@@ -913,7 +913,11 @@ class ObjectCompiler:
for superclass in superclasses:
superId, superDesc, dummy = superclass
superclassname, fullyqualifiedname, module = self.findcodename("class", superId)
- superclassnames.append(superclassname)
+ # I don't think this is correct:
+ if superclassname == cname:
+ pass # superclassnames.append(fullyqualifiedname)
+ else:
+ superclassnames.append(superclassname)
if self.fp:
self.fp.write("%s._superclassnames = %s\n"%(cname, `superclassnames`))