diff options
| author | Hugo <hugovk@users.noreply.github.com> | 2019-10-22 11:58:42 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2019-10-22 11:59:19 +0200 |
| commit | a76933edd5b554456f81b2dbeaacd4ab06528d1b (patch) | |
| tree | c342f68a4eef4ef864dd177973edce139db2d264 /src/tablib/formats | |
| parent | 3197e59b256c188c41fc87e14dca19c7c1f67cd6 (diff) | |
| download | tablib-a76933edd5b554456f81b2dbeaacd4ab06528d1b.tar.gz | |
Refs #401 - Sort imports with isort
Diffstat (limited to 'src/tablib/formats')
| -rw-r--r-- | src/tablib/formats/__init__.py | 18 | ||||
| -rw-r--r-- | src/tablib/formats/_csv.py | 1 | ||||
| -rw-r--r-- | src/tablib/formats/_dbf.py | 4 | ||||
| -rw-r--r-- | src/tablib/formats/_json.py | 1 | ||||
| -rw-r--r-- | src/tablib/formats/_latex.py | 1 | ||||
| -rw-r--r-- | src/tablib/formats/_ods.py | 1 | ||||
| -rw-r--r-- | src/tablib/formats/_rst.py | 1 | ||||
| -rw-r--r-- | src/tablib/formats/_tsv.py | 8 | ||||
| -rw-r--r-- | src/tablib/formats/_xls.py | 3 | ||||
| -rw-r--r-- | src/tablib/formats/_xlsx.py | 1 | ||||
| -rw-r--r-- | src/tablib/formats/_yaml.py | 3 |
11 files changed, 19 insertions, 23 deletions
diff --git a/src/tablib/formats/__init__.py b/src/tablib/formats/__init__.py index 9542d9a..12f2610 100644 --- a/src/tablib/formats/__init__.py +++ b/src/tablib/formats/__init__.py @@ -2,18 +2,18 @@ """ from . import _csv as csv -from . import _json as json -from . import _xls as xls -from . import _yaml as yaml -from . import _tsv as tsv -from . import _html as html -from . import _xlsx as xlsx -from . import _ods as ods from . import _dbf as dbf -from . import _latex as latex from . import _df as df -from . import _rst as rst +from . import _html as html from . import _jira as jira +from . import _json as json +from . import _latex as latex +from . import _ods as ods +from . import _rst as rst +from . import _tsv as tsv +from . import _xls as xls +from . import _xlsx as xlsx +from . import _yaml as yaml # xlsx before as xls (xlrd) can also read xlsx available = (json, xlsx, xls, yaml, csv, dbf, tsv, html, jira, latex, ods, df, rst) diff --git a/src/tablib/formats/_csv.py b/src/tablib/formats/_csv.py index 975d171..8bd3728 100644 --- a/src/tablib/formats/_csv.py +++ b/src/tablib/formats/_csv.py @@ -4,7 +4,6 @@ import csv from io import StringIO - title = 'csv' extensions = ('csv',) diff --git a/src/tablib/formats/_dbf.py b/src/tablib/formats/_dbf.py index 2a6df32..7ac814e 100644 --- a/src/tablib/formats/_dbf.py +++ b/src/tablib/formats/_dbf.py @@ -4,11 +4,9 @@ import io import os import tempfile -from tablib.packages.dbfpy import dbf -from tablib.packages.dbfpy import dbfnew +from tablib.packages.dbfpy import dbf, dbfnew from tablib.packages.dbfpy import record as dbfrecord - title = 'dbf' extensions = ('csv',) diff --git a/src/tablib/formats/_json.py b/src/tablib/formats/_json.py index f427ff2..98879ac 100644 --- a/src/tablib/formats/_json.py +++ b/src/tablib/formats/_json.py @@ -6,7 +6,6 @@ from uuid import UUID import tablib - title = 'json' extensions = ('json', 'jsn') diff --git a/src/tablib/formats/_latex.py b/src/tablib/formats/_latex.py index fae2ceb..0b1e3bc 100644 --- a/src/tablib/formats/_latex.py +++ b/src/tablib/formats/_latex.py @@ -4,7 +4,6 @@ """ import re - title = 'latex' extensions = ('tex',) diff --git a/src/tablib/formats/_ods.py b/src/tablib/formats/_ods.py index 43a2cfb..c874514 100644 --- a/src/tablib/formats/_ods.py +++ b/src/tablib/formats/_ods.py @@ -2,6 +2,7 @@ """ from io import BytesIO + from odf import opendocument, style, table, text title = 'ods' diff --git a/src/tablib/formats/_rst.py b/src/tablib/formats/_rst.py index 8067f73..3f8c369 100644 --- a/src/tablib/formats/_rst.py +++ b/src/tablib/formats/_rst.py @@ -5,7 +5,6 @@ from itertools import zip_longest from statistics import median from textwrap import TextWrapper - title = 'rst' extensions = ('rst',) diff --git a/src/tablib/formats/_tsv.py b/src/tablib/formats/_tsv.py index 380b4e6..cdc85bd 100644 --- a/src/tablib/formats/_tsv.py +++ b/src/tablib/formats/_tsv.py @@ -1,11 +1,9 @@ """ Tablib - TSV (Tab Separated Values) Support. """ -from tablib.formats._csv import ( - export_set as export_set_wrapper, - import_set as import_set_wrapper, - detect as detect_wrapper, -) +from tablib.formats._csv import detect as detect_wrapper +from tablib.formats._csv import export_set as export_set_wrapper +from tablib.formats._csv import import_set as import_set_wrapper title = 'tsv' extensions = ('tsv',) diff --git a/src/tablib/formats/_xls.py b/src/tablib/formats/_xls.py index 3fc94af..d405c77 100644 --- a/src/tablib/formats/_xls.py +++ b/src/tablib/formats/_xls.py @@ -3,10 +3,11 @@ from io import BytesIO -import tablib import xlrd import xlwt +import tablib + title = 'xls' extensions = ('xls',) diff --git a/src/tablib/formats/_xlsx.py b/src/tablib/formats/_xlsx.py index 6ac46b9..6774ef1 100644 --- a/src/tablib/formats/_xlsx.py +++ b/src/tablib/formats/_xlsx.py @@ -4,6 +4,7 @@ from io import BytesIO import openpyxl + import tablib Workbook = openpyxl.workbook.Workbook diff --git a/src/tablib/formats/_yaml.py b/src/tablib/formats/_yaml.py index 3707876..54b635e 100644 --- a/src/tablib/formats/_yaml.py +++ b/src/tablib/formats/_yaml.py @@ -1,9 +1,10 @@ """ Tablib - YAML Support. """ -import tablib import yaml +import tablib + title = 'yaml' extensions = ('yaml', 'yml') |
