(self, value)
return s
Format a string.
Format a string.
Format a string .
def format(self, value):
        """Format a string."""
        s = values.pass_string(value)
        if self._string_field == b'&':
            s = s.to_str()
        else:
            s = s.to_str().ljust(len(self._string_field))[:len(self._string_field)]
        return s
def format ( self , value ) : s = values . pass_string ( value ) if self . _string_field == b'&' : s = s . to_str ( ) else : s = s . to_str ( ) . ljust ( len ( self . _string_field ) ) [ : len ( self . _string_field ) ] return s