#NEWLINE# def _format_code( code ) : #NEWLINE# #INDENT# lines = code . splitlines ( ) #NEWLINE# format = ( '%%%dd  %%s\n' % len ( repr ( ( len ( lines ) + 1 ) ) ) ) #NEWLINE# return '' . join ( [ ( format % ( ( i + 1 ) , line ) ) for ( i , line ) in enumerate ( lines ) ] )