Skip to content

Commit

Permalink
Update identify_filenames.py
Browse files Browse the repository at this point in the history
- platform.python_version_tuple() was returning a string tuple which when compared with ('3','2','0') returned incorrectly

+ replaced with sys.version_info and issue is now fixed
  • Loading branch information
h-ssh authored Dec 17, 2024
1 parent b0a498c commit 0697d7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/identify_filenames.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
examined for every feature.
"""

import platform
if platform.python_version_tuple() < ('3','2','0'):
import sys
if sys.version_info < (3,2):
raise RuntimeError('This script now requires Python 3.2 or above')

try:
Expand Down

0 comments on commit 0697d7c

Please sign in to comment.