Skip to content

Commit 2ae5a9d

Browse files
author
Kevin Kuhl
committed
PEP-8 fixes. Ignore tests without s3fs available. Use ensure_clean
1 parent 17973a1 commit 2ae5a9d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pandas/io/common.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ def get_filepath_or_buffer(filepath_or_buffer, encoding=None,
194194
"""
195195
filepath_or_buffer = _stringify_path(filepath_or_buffer)
196196

197-
from io import TextIOWrapper
198197
if _is_url(filepath_or_buffer):
199198
req = _urlopen(filepath_or_buffer)
200199
content_encoding = req.headers.get('Content-Encoding', None)
@@ -207,8 +206,8 @@ def get_filepath_or_buffer(filepath_or_buffer, encoding=None,
207206
if _is_s3_url(filepath_or_buffer):
208207
from pandas.io import s3
209208
return s3.get_filepath_or_buffer(filepath_or_buffer,
210-
encoding=encoding,
211-
compression=compression)
209+
encoding=encoding,
210+
compression=compression)
212211

213212
if isinstance(filepath_or_buffer, (compat.string_types,
214213
compat.binary_type,

0 commit comments

Comments
 (0)