we've got a dbf where numeric fields are padded with <NUL> characters. on
these the library crashes:
File "/usr/local/lib/python2.6/dist-packages/dbfpy/fields.py", line 240,
in decodeValue
# a float (has decimal separator)
ValueError: null byte in argument for float()
I would add this line just after stripping the value, before converting it
to float/integer:
value = value.replace('\0', '')
Nobody/Anonymous
None
None
Public
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2009-05-26 05:36 | a1s |
| allow_comments | 1 | 2009-05-26 05:36 | a1s |
| close_date | - | 2009-05-26 05:36 | a1s |
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use