#NEWLINE# def _pfixed( s , space , nanRep = None , float_format = None ) : #NEWLINE# #INDENT# if isinstance ( s , float ) : #NEWLINE# #INDENT# if float_format : #NEWLINE# #INDENT# formatted = float_format ( s ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# formatted = ( '%#8.6F' % s ) #NEWLINE# #UNINDENT# return formatted . rjust ( space ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return ( '%s' % s ) [ : space ] . rjust ( space )