Skip to content

Commit 7940ab7

Browse files
committed
Fix PEP8 errors
1 parent 05332fd commit 7940ab7

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
@@ -201,7 +201,7 @@ def get_filepath_or_buffer(filepath_or_buffer, encoding=None,
201201
-------
202202
a filepath_or_buffer, the encoding, the compression
203203
"""
204-
204+
205205
if _is_url(filepath_or_buffer):
206206
url = str(filepath_or_buffer)
207207
req = _urlopen(url)

pandas/io/parsers.py

+2
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ def _validate_nrows(nrows):
360360
'xz': '.xz',
361361
}
362362

363+
363364
def _infer_compression(filepath_or_buffer):
364365
"""
365366
Infer compression of a filepath or buffer. In case of buffer, compression
@@ -374,6 +375,7 @@ def _infer_compression(filepath_or_buffer):
374375
return compression
375376
return None
376377

378+
377379
def _read(filepath_or_buffer, kwds):
378380
"""Generic reader of line files."""
379381
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)