Skip to content

Commit

Permalink
Use sys.version_info
Browse files Browse the repository at this point in the history
  • Loading branch information
itziakos committed Sep 28, 2024
1 parent 2a91124 commit a1f5a86
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions zipfile2/common.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import sys
import zipfile
import platform

PYTHON_VERSION = tuple(map(int, platform.python_version_tuple()))
PY312 = PYTHON_VERSION >= (3, 12, 0)

PYTHON_VERSION = sys.version_info[:2]
PY312 = PYTHON_VERSION >= (3, 12)


class TooManyFiles(zipfile.BadZipfile):
Expand Down

0 comments on commit a1f5a86

Please sign in to comment.