#NEWLINE# def transform( self , node , results ) : #NEWLINE# #INDENT# colon = results [ 'colon' ] #NEWLINE# idx = node . children . index ( colon ) #NEWLINE# if ( ( node . children [ ( idx - 2 ) ] . value == '(' ) and ( results . children [ ( idx - 1 ) ] . value == ')' ) ) : #NEWLINE# #INDENT# del node . children [ ( idx - 2 ) : idx ] #NEWLINE# idx -= 2 #NEWLINE# #UNINDENT# insert_object ( node , idx ) #NEWLINE# touch_import_top ( 'builtins' , 'object' , node )