summaryrefslogtreecommitdiff
path: root/tablib/formats/_csv.py
diff options
context:
space:
mode:
Diffstat (limited to 'tablib/formats/_csv.py')
-rw-r--r--tablib/formats/_csv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tablib/formats/_csv.py b/tablib/formats/_csv.py
index 0554976..a66f2e0 100644
--- a/tablib/formats/_csv.py
+++ b/tablib/formats/_csv.py
@@ -33,7 +33,7 @@ def import_set(in_stream, headers=True):
rows = csv.reader(in_stream.split())
for i, row in enumerate(rows):
- if (i == 1) and (headers):
+ if (i == 0) and (headers):
data.headers = row
else:
data.append(row)