

def encodeValue(self, value):
    'Return raw data string encoded from a ``value``.'
    return str(value)[:self.length].ljust(self.length)

dataset/ETHPy150Open kennethreitz/tablib/tablib/packages/dbfpy3/fields.py DbfCharacterFieldDef.encodeValue/original