Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
jreback committed Feb 11, 2018
1 parent 2b94915 commit 62fa494
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pandas/io/json/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ def read_json(path_or_buf=None, orient=None, typ='frame', dtype=True,
if should_close:
try:
filepath_or_buffer.close()
except:
except: # noqa: flake8
pass
return result

Expand Down
2 changes: 1 addition & 1 deletion pandas/io/packers.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def read(fh):
if should_close:
try:
path_or_buf.close()
except:
except: # noqa: flake8
pass
return l

Expand Down
2 changes: 1 addition & 1 deletion pandas/io/parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def read(self, path, columns=None, **kwargs):
if should_close:
try:
path.close()
except:
except: # noqa: flake8
pass

return result
Expand Down
2 changes: 1 addition & 1 deletion pandas/io/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ def _read(filepath_or_buffer, kwds):
if should_close:
try:
filepath_or_buffer.close()
except:
except: # noqa: flake8
pass

return data
Expand Down
2 changes: 1 addition & 1 deletion pandas/tests/io/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def add_tips_files(bucket_name):
conn.create_bucket(Bucket='cant_get_it', ACL='private')
add_tips_files('cant_get_it')
yield conn
except:
except: # noqa: flake8
pytest.skip("failure to use s3 resource")
finally:
s3.stop()

0 comments on commit 62fa494

Please sign in to comment.