diff options
| author | James Patrick Robinson Jr <jamesprobinsonjr@gmail.com> | 2013-08-27 11:57:43 -0400 |
|---|---|---|
| committer | James Patrick Robinson Jr <jamesprobinsonjr@gmail.com> | 2013-08-27 11:57:43 -0400 |
| commit | 26748deb9f84963580ef9f0054b72b29b157ed77 (patch) | |
| tree | 809d6f0b98d7cc41575f7db12eb679858001b1c9 | |
| parent | 2c14486c33d4cd3a4411bfa3cecf2302fdd8453f (diff) | |
| download | tablib-26748deb9f84963580ef9f0054b72b29b157ed77.tar.gz | |
changed split('\r\n') to splitlines()
| -rw-r--r-- | tablib/formats/_tsv.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tablib/formats/_tsv.py b/tablib/formats/_tsv.py index 816b6e3..8ef2b67 100644 --- a/tablib/formats/_tsv.py +++ b/tablib/formats/_tsv.py @@ -34,9 +34,9 @@ def import_set(dset, in_stream, headers=True): dset.wipe() if is_py3: - rows = csv.reader(in_stream.split('\r\n'), delimiter='\t') + rows = csv.reader(in_stream.splitlines(), delimiter='\t') else: - rows = csv.reader(in_stream.split('\r\n'), delimiter='\t', + rows = csv.reader(in_stream.splitlines(), delimiter='\t', encoding=DEFAULT_ENCODING) for i, row in enumerate(rows): |
