def do_center(value, width=80):
 return text_type(value).center(width)

def do_center ( value , width = 80 ) : return text_type ( value ) . center ( width )
centers the value in a field of a given width .