Skip to content

Commit 015dd5d

Browse files
committed
Fix PEP8 violations
1 parent 942ef7c commit 015dd5d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pandas/io/json/json.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import pandas._libs.json as json
77
from pandas._libs.tslib import iNaT
8-
from pandas.compat import PY3, StringIO, long, u
8+
from pandas.compat import StringIO, long, u
99
from pandas import compat, isna
1010
from pandas import Series, DataFrame, to_datetime, MultiIndex
1111
from pandas.io.common import (get_filepath_or_buffer, _get_handle,
@@ -443,7 +443,6 @@ def _get_data_from_filepath(self, filepath_or_buffer):
443443
data, _ = _get_handle(filepath_or_buffer, 'r',
444444
encoding=self.encoding,
445445
compression=self.compression)
446-
# TODO (Simon): Determine if we need to worry about closing file pointers that are passed in from e.g. S3
447446
self.should_close = True
448447
self.open_stream = data
449448

pandas/tests/io/json/test_compression.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,9 @@ def test_with_s3_url(compression):
109109
with open(path, 'rb') as f:
110110
bucket.put_object(Key='test-1', Body=f)
111111

112-
s3_df = pd.read_json('s3://pandas-test/test-1', compression=compression)
113-
assert_frame_equal(df, s3_df)
112+
roundtripped_df = pd.read_json('s3://pandas-test/test-1',
113+
compression=compression)
114+
assert_frame_equal(df, roundtripped_df)
114115

115116

116117
@pytest.mark.parametrize('compression', COMPRESSION_TYPES)

0 commit comments

Comments
 (0)