Skip to content

Commit

Permalink
Fix issue #1145, besure call packaging api when Python >= 3.13.2
Browse files Browse the repository at this point in the history
  • Loading branch information
manateelazycat committed Jan 19, 2025
1 parent 59a956f commit 7e382e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/tabnine.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
if version_info[1] < 12:
from distutils.version import StrictVersion
version_function = StrictVersion
elif version_info[1] >= 13:
elif len(version_info) >= 3 and version_info[1] >= 13 and version_info[2] > 1:
from packaging.version import Version
version_function = Version
else:
Expand Down

0 comments on commit 7e382e1

Please sign in to comment.