

def decodeValue(self, value):
    'Return True, False or -1 decoded from ``value``.'
    if (value == '?'):
        return (- 1)
    if (value in 'NnFf '):
        return False
    if (value in 'YyTt'):
        return True
    raise ValueError(('[%s] Invalid logical value %r' % (self.name, value)))

dataset/ETHPy150Open kennethreitz/tablib/tablib/packages/dbfpy3/fields.py DbfLogicalFieldDef.decodeValue/original