Skip to content

Commit fe201a2

Browse files
PEP8: fix sql.py and test_sql.py
Master is failing due to my PR pandas-dev#12205 Strange that it did not fail on travis before merging ? Author: Joris Van den Bossche <[email protected]> Closes pandas-dev#12263 from jorisvandenbossche/fix-sql-pep8 and squashes the following commits: f2c1606 [Joris Van den Bossche] PEP8: fix sql.py and test_sql.py
1 parent 62363d2 commit fe201a2

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pandas/io/sql.py

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
from pandas.core.base import PandasObject
2222
from pandas.core.dtypes import DatetimeTZDtype
2323
from pandas.tseries.tools import to_datetime
24-
from pandas.util.decorators import Appender
2524

2625
from contextlib import contextmanager
2726

pandas/io/tests/test_sql.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -2324,7 +2324,7 @@ def _check_roundtrip(self, frame):
23242324
frame2['Idx'] = Index(lrange(len(frame2))) + 10
23252325
sql.to_sql(frame2, name='test_table2', con=self.conn, index=False)
23262326
result = sql.read_sql("select * from test_table2", self.conn,
2327-
index_col='Idx')
2327+
index_col='Idx')
23282328
expected = frame.copy()
23292329
expected.index = Index(lrange(len(frame2))) + 10
23302330
expected.index.name = 'Idx'
@@ -2672,7 +2672,7 @@ def _check_roundtrip(self, frame):
26722672
sql.to_sql(frame2, name='test_table2',
26732673
con=self.conn, flavor='mysql', index=False)
26742674
result = sql.read_sql("select * from test_table2", self.conn,
2675-
index_col='Idx')
2675+
index_col='Idx')
26762676
expected = frame.copy()
26772677

26782678
# HACK! Change this once indexes are handled properly.
@@ -2738,7 +2738,7 @@ def test_keyword_as_column_names(self):
27382738
_skip_if_no_pymysql()
27392739
df = DataFrame({'From': np.ones(5)})
27402740
sql.to_sql(df, con=self.conn, name='testkeywords',
2741-
if_exists='replace', flavor='mysql', index=False)
2741+
if_exists='replace', flavor='mysql', index=False)
27422742

27432743
def test_if_exists(self):
27442744
_skip_if_no_pymysql()

0 commit comments

Comments
 (0)