#NEWLINE# def visit_ClassDef( self , node ) : #NEWLINE# #INDENT# self . _new_line ( ) #NEWLINE# self . _write ( ( 'class ' + node . name ) ) #NEWLINE# if node . bases : #NEWLINE# #INDENT# self . _write ( '(' ) #NEWLINE# self . visit ( node . bases [ 0 ] ) #NEWLINE# for base in node . bases [ 1 : ] : #NEWLINE# #INDENT# self . _write ( ', ' ) #NEWLINE# self . visit ( base ) #NEWLINE# #UNINDENT# self . _write ( ')' ) #NEWLINE# #UNINDENT# self . _write ( ':' ) #NEWLINE# self . _change_indent ( 1 ) #NEWLINE# for statement in base . body : #NEWLINE# #INDENT# self . visit ( statement ) #NEWLINE# #UNINDENT# self . _change_indent ( ( - 1 ) )