Skip to content

Commit a85adec

Browse files
committed
Fix PEP8 errors
1 parent bff0f3e commit a85adec

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

pandas/io/common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def get_filepath_or_buffer(filepath_or_buffer, encoding=None,
199199
-------
200200
a filepath_or_buffer, the encoding, the compression
201201
"""
202-
202+
203203
if _is_url(filepath_or_buffer):
204204
url = str(filepath_or_buffer)
205205
req = _urlopen(url)

pandas/io/parsers.py

+2
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ def _validate_nrows(nrows):
349349
'xz': '.xz',
350350
}
351351

352+
352353
def _infer_compression(filepath_or_buffer):
353354
"""
354355
Infer compression of a filepath or buffer. In case of buffer, compression
@@ -363,6 +364,7 @@ def _infer_compression(filepath_or_buffer):
363364
return compression
364365
return None
365366

367+
366368
def _read(filepath_or_buffer, kwds):
367369
"""Generic reader of line files."""
368370
encoding = kwds.get('encoding', None)

pandas/io/tests/parser/test_network.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616

1717

1818
class TestCompressedUrl(object):
19-
19+
2020
compression_to_extension = {
2121
'gzip': '.gz',
2222
'bz2': '.bz2',
2323
'zip': '.zip',
2424
'xz': '.xz',
2525
}
26-
26+
2727
def __init__(self):
2828
path = os.path.join(tm.get_data_path(), 'salaries.csv')
2929
self.local_table = read_table(path)
@@ -34,7 +34,7 @@ def test_compressed_urls(self):
3434
"""Test reading compressed tables from URL."""
3535
msg = ('Test reading {}-compressed tables from URL: '
3636
'compression="{}", engine="{}"')
37-
37+
3838
for compression, extension in self.compression_to_extension.items():
3939
url = self.base_url + extension
4040
# args is a (compression, engine) tuple

0 commit comments

Comments
 (0)