Refs #322 - Open dbf file in binary mode in docs

This commit is contained in:
Claude Paroz
2019-10-03 22:24:23 +02:00
parent 8aeb5e5158
commit 0e06b7e328
+1 -1
View File
@@ -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()