Skip to content

Commit

Permalink
Fix seekable ZIP workaround: needed for <3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
remram44 committed Jan 13, 2022
1 parent 4bcbf6f commit 20f4a88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion reprounzip/reprounzip/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def _open_zip(self):
else:
raise ValueError("File doesn't appear to be an RPZ pack")

if sys.version_info < (3, 6):
if sys.version_info < (3, 7):
# zip.open() doesn't return a seekable file object before 3.6
# Extract to a temporary file instead
fd, temporary_data = Path.tempfile(
Expand Down
2 changes: 1 addition & 1 deletion reprozip/reprozip/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def _open_zip(self):
else:
raise ValueError("File doesn't appear to be an RPZ pack")

if sys.version_info < (3, 6):
if sys.version_info < (3, 7):
# zip.open() doesn't return a seekable file object before 3.6
# Extract to a temporary file instead
fd, temporary_data = Path.tempfile(
Expand Down

0 comments on commit 20f4a88

Please sign in to comment.