Skip to content

Commit 9f0d480

Browse files
committed
formatting
1 parent 7c43ce8 commit 9f0d480

File tree

7 files changed

+8
-7
lines changed

7 files changed

+8
-7
lines changed

pyexcel_xls/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
:copyright: (c) 2016-2021 by Onni Software Ltd
88
:license: New BSD License
99
"""
10+
1011
import xlrd
1112

1213
# flake8: noqa

pyexcel_xls/xlsr.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
:copyright: (c) 2016-2021 by Onni Software Ltd
88
:license: New BSD License
99
"""
10+
1011
import datetime
1112

1213
import xlrd

pyexcel_xls/xlsw.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
:copyright: (c) 2016-2021 by Onni Software Ltd
88
:license: New BSD License
99
"""
10+
1011
import datetime
1112

1213
import xlrd

tests/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def test_reading_through_sheets(self):
8181
expected = [[4, 4, 4, 4], [5, 5, 5, 5], [6, 6, 6, 6]]
8282
assert data == expected
8383
data = list(b["Sheet3"].rows())
84-
expected = [[u"X", u"Y", u"Z"], [1, 4, 7], [2, 5, 8], [3, 6, 9]]
84+
expected = [["X", "Y", "Z"], [1, 4, 7], [2, 5, 8], [3, 6, 9]]
8585
assert data == expected
8686
sheet3 = b["Sheet3"]
8787
sheet3.name_columns_by_row(0)

tests/test_bug_fixes.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,13 @@
88
import datetime
99
from unittest.mock import MagicMock, patch
1010

11+
import pytest
1112
import pyexcel as pe
1213
from _compact import OrderedDict
1314
from pyexcel_xls import XLRD_VERSION_2_OR_ABOVE, save_data
1415
from pyexcel_xls.xlsr import xldate_to_python_date
1516
from pyexcel_xls.xlsw import XLSWriter as Writer
1617

17-
import pytest
18-
1918
IN_TRAVIS = "TRAVIS" in os.environ
2019

2120

tests/test_multiple_sheets.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import os
22
import sys
33

4+
import pytest
45
import pyexcel
56
from base import PyexcelMultipleSheetBase
67

7-
import pytest
8-
98
if sys.version_info[0] == 2 and sys.version_info[1] < 7:
109
from ordereddict import OrderedDict
1110
else:
@@ -231,6 +230,6 @@ def _produce_ordered_dict():
231230
data_dict.update({"Sheet1": [[1, 1, 1, 1], [2, 2, 2, 2], [3, 3, 3, 3]]})
232231
data_dict.update({"Sheet2": [[4, 4, 4, 4], [5, 5, 5, 5], [6, 6, 6, 6]]})
233232
data_dict.update(
234-
{"Sheet3": [[u"X", u"Y", u"Z"], [1, 4, 7], [2, 5, 8], [3, 6, 9]]}
233+
{"Sheet3": [["X", "Y", "Z"], [1, 4, 7], [2, 5, 8], [3, 6, 9]]}
235234
)
236235
return data_dict

tests/test_writer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def test_write_book(self):
1010
self.content = {
1111
"Sheet1": [[1, 1, 1, 1], [2, 2, 2, 2], [3, 3, 3, 3]],
1212
"Sheet2": [[4, 4, 4, 4], [5, 5, 5, 5], [6, 6, 6, 6]],
13-
"Sheet3": [[u"X", u"Y", u"Z"], [1, 4, 7], [2, 5, 8], [3, 6, 9]],
13+
"Sheet3": [["X", "Y", "Z"], [1, 4, 7], [2, 5, 8], [3, 6, 9]],
1414
}
1515
self.testfile = "writer.xls"
1616
writer = Writer(self.testfile, "xls")

0 commit comments

Comments
 (0)