diff options
| author | Jannis Leidel <jannis@leidel.info> | 2019-10-18 15:57:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-18 15:57:13 +0200 |
| commit | f6bf14afd22d8e5b706670590cc95f29d4483434 (patch) | |
| tree | a65fbc8b6fd1112222beb6f66c31082ffe231460 /tablib/compat.py | |
| parent | f3d02aa3b088e2f9044fe5e4869e8c8cb91d2cdc (diff) | |
| download | tablib-f6bf14afd22d8e5b706670590cc95f29d4483434.tar.gz | |
Add project release config and cleanup project setup. (#398)
* Add project release config and use Travis build stages.
Refs #378.
* Restructure project to use src/ and tests/ directories.
* Fix testing.
* Remove eggs.
* More fixes.
- isort and flake8 config
- manifest template update
- tox ini extension
- docs build fixes
- docs content fixes
* Docs and license cleanup.
Diffstat (limited to 'tablib/compat.py')
| -rw-r--r-- | tablib/compat.py | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/tablib/compat.py b/tablib/compat.py deleted file mode 100644 index 1582173..0000000 --- a/tablib/compat.py +++ /dev/null @@ -1,36 +0,0 @@ -# -*- coding: utf-8 -*- - -""" -tablib.compat -~~~~~~~~~~~~~ - -Tablib compatiblity module. - -""" - -import sys - -is_py3 = (sys.version_info[0] > 2) - - -if is_py3: - from io import StringIO - from statistics import median - from itertools import zip_longest as izip_longest - import csv - import tablib.packages.dbfpy3 as dbfpy - - unicode = str - xrange = range - -else: - from StringIO import StringIO - from tablib.packages.statistics import median - from itertools import izip_longest - from backports import csv - import tablib.packages.dbfpy as dbfpy - - unicode = unicode - xrange = xrange - -from MarkupPy import markup # Kept temporarily to avoid breaking existing imports |
