diff options
Diffstat (limited to 'Lib/plat-mac/gensuitemodule.py')
| -rw-r--r-- | Lib/plat-mac/gensuitemodule.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/plat-mac/gensuitemodule.py b/Lib/plat-mac/gensuitemodule.py index fd706a0cda..6d1ceae268 100644 --- a/Lib/plat-mac/gensuitemodule.py +++ b/Lib/plat-mac/gensuitemodule.py @@ -698,7 +698,7 @@ class SuiteCompiler: """Generate class boilerplate""" classname = '%s_Events'%self.modname if self.basemodule: - modshortname = string.split(self.basemodule.__name__, '.')[-1] + modshortname = self.basemodule.__name__.split('.')[-1] baseclassname = '%s_Events'%modshortname self.fp.write("class %s(%s):\n\n"%(classname, baseclassname)) else: @@ -1169,7 +1169,7 @@ def compiledataflags(flags): bits.append(dataflagdict[i]) else: bits.append(repr(i)) - return '[%s]' % string.join(bits) + return '[%s]' % ' '.join(bits) def ascii(str): """Return a string with all non-ascii characters hex-encoded""" |
