diff options
| author | Kenneth Reitz <me@kennethreitz.com> | 2011-05-14 10:10:02 -0400 |
|---|---|---|
| committer | Kenneth Reitz <me@kennethreitz.com> | 2011-05-14 10:10:02 -0400 |
| commit | 239e33aaedafe3e55c92c80f67e4e595449bdc4a (patch) | |
| tree | 79c68dc5a363c4859e6f3d6fcc8ac7cb3e8f52c9 /tablib/formats/_tsv.py | |
| parent | bf4fdea1876a86087566eb593f8c30f0a60caf7f (diff) | |
| download | tablib-239e33aaedafe3e55c92c80f67e4e595449bdc4a.tar.gz | |
subtle format cleanups
Diffstat (limited to 'tablib/formats/_tsv.py')
| -rw-r--r-- | tablib/formats/_tsv.py | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/tablib/formats/_tsv.py b/tablib/formats/_tsv.py index e2ca25e..54838b1 100644 --- a/tablib/formats/_tsv.py +++ b/tablib/formats/_tsv.py @@ -3,20 +3,11 @@ """ Tablib - TSV (Tab Separated Values) Support. """ -import sys -if sys.version_info[0] > 2: - is_py3 = True - from io import StringIO - import csv -else: - is_py3 = False - from cStringIO import StringIO - import tablib.packages.unicodecsv as csv - - import os import tablib +from tablib.compat import is_py3, csv, StringIO + title = 'tsv' |
