diff options
author | Claude Paroz <claude@2xlibre.net> | 2019-10-03 22:24:23 +0200 |
---|---|---|
committer | Claude Paroz <claude@2xlibre.net> | 2019-10-03 22:24:23 +0200 |
commit | 0e06b7e328005408c890797c02ceff20efd2e482 (patch) | |
tree | 85154b3f54bdef8f24fabdb855457646ca041a63 | |
parent | 8aeb5e5158e26125a3e5a5ebb09ebc94493c6c4f (diff) | |
download | tablib-0e06b7e328005408c890797c02ceff20efd2e482.tar.gz |
Refs #322 - Open dbf file in binary mode in docs
-rw-r--r-- | tablib/core.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tablib/core.py b/tablib/core.py index 05687a2..e5244f6 100644 --- a/tablib/core.py +++ b/tablib/core.py @@ -608,7 +608,7 @@ class Dataset(object): # To import data from an existing DBF file: data = tablib.Dataset() - data.dbf = open('existing_table.dbf').read() + data.dbf = open('existing_table.dbf', mode='rb').read() # to import data from an ASCII-encoded bytestring: data = tablib.Dataset() |