Classes without explicit bases still derive from object

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71721 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2012-06-12 20:56:15 +00:00
parent 3e720e2530
commit f697317ebc
2 changed files with 6 additions and 0 deletions

View File

@@ -370,6 +370,8 @@ from .%s import *
stream.write('%sclass %s' % (indent, pc.name))
if pc.bases:
stream.write('(%s):\n' % ', '.join(pc.bases))
else:
stream.write('(object):\n')
indent2 = indent + ' '*4
if pc.briefDoc:
stream.write('%s"""\n' % indent2)