Skip to content

Commit ecee74f

Browse files
committed
Revert to old error msg. Remove unused line
1 parent 7c9fe8b commit ecee74f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/io/common.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,6 @@ def _get_handle(path_or_buf, mode, encoding=None, compression=None,
263263
is_path = isinstance(path_or_buf, compat.string_types)
264264

265265
if compression:
266-
compression = compression.lower()
267266

268267
if compat.PY2 and not is_path and encoding:
269268
msg = 'compression with encoding is not yet supported in Python 2'
@@ -311,7 +310,7 @@ def _get_handle(path_or_buf, mode, encoding=None, compression=None,
311310

312311
# Unrecognized Compression
313312
else:
314-
msg = 'Unrecognized compression: {}'.format(compression)
313+
msg = 'Unrecognized compression type: {}'.format(compression)
315314
raise ValueError(msg)
316315

317316
# In Python 3

0 commit comments

Comments
 (0)