Skip to content

Commit

Permalink
Update common.py
Browse files Browse the repository at this point in the history
BUG: use mode when opening ZipFile. pandas-dev#17778
  • Loading branch information
sec147 committed Oct 5, 2017
1 parent 22515f5 commit c39db5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/io/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def _get_handle(path_or_buf, mode, encoding=None, compression=None,
# ZIP Compression
elif compression == 'zip':
import zipfile
zip_file = zipfile.ZipFile(path_or_buf)
zip_file = zipfile.ZipFile(path_or_buf, mode)
zip_names = zip_file.namelist()
if len(zip_names) == 1:
f = zip_file.open(zip_names.pop())
Expand Down

0 comments on commit c39db5e

Please sign in to comment.