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