We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58f7e1e commit 680dc8fCopy full SHA for 680dc8f
pandas/io/common.py
@@ -276,7 +276,7 @@ def file_path_to_url(path):
276
277
# ZipFile is not a context manager for <= 2.6
278
# must be tuple index here since 2.6 doesn't use namedtuple for version_info
279
-if sys.version_info[1] <= 6:
+if compat.PY2 and sys.version_info[1] <= 6:
280
@contextmanager
281
def ZipFile(*args, **kwargs):
282
with closing(zipfile.ZipFile(*args, **kwargs)) as zf:
0 commit comments