From 0e06b7e328005408c890797c02ceff20efd2e482 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Thu, 3 Oct 2019 22:24:23 +0200 Subject: [PATCH] Refs #322 - Open dbf file in binary mode in docs --- tablib/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()