Skip to content

Commit 5633791

Browse files
committed
update import path
1 parent 7c74756 commit 5633791

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Change log
77
Added:
88
********************************************************************************
99

10-
#. adapt pyexcel v0.3.0
10+
#. support pyexcel v0.3.0
1111

1212

1313
0.2.3 - 14.07.2016

pyexcel_text/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@
77
:copyright: (c) 2014-2016 by C. W.
88
:license: New BSD
99
"""
10-
from . import _text as text
11-
from . import _json as json
10+
from . import _text # noqa
11+
from . import _json # noqa
1212

13-
renderers = text.renderers + json.renderers
1413

1514
_SHARED_MESSAGE = """
1615
Removed since v0.1.2! Please use save_as, save_book_as of pyexcel or

pyexcel_text/_text.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"""
1010
import tabulate
1111

12-
from pyexcel.sheets import NominableSheet, SheetStream
12+
from pyexcel.generators import SheetStream
1313
from pyexcel.sheets.matrix import uniform
1414
from pyexcel.renderers.factory import Renderer
1515

@@ -42,8 +42,7 @@ def tabulating(sheet, file_type, write_title):
4242
if isinstance(sheet, SheetStream):
4343
table = list(sheet.to_array())
4444
width, table = uniform(table)
45-
46-
if isinstance(sheet, NominableSheet):
45+
else:
4746
if len(sheet.colnames) > 0:
4847
keywords['headers'] = 'firstrow'
4948
table = sheet.to_array()

0 commit comments

Comments
 (0)