Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 16, 2025
1 parent 65b673d commit f85387f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/pyplugin_installer/version_compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def compareVersions(a, b):
v2 = chopString(b)
# set the shorter string as a base
l1, l2 = len(v1), len(v2)
l = min(l1,l2)
l = min(l1, l2)
# try to determine within the common length
for i in range(l):
if return_code := compareElements(v1[i], v2[i]):
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_versioncompare.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def testCompareVersions(self):
self.assertEqual(compareVersions(a, b), 0)
b = "1.0.0post1"
self.assertEqual(compareVersions(a, b), 2)

# FIXME: these one will fail ...
# should we use packaging.version.parse ?
# a = "1.0a1"
Expand Down

0 comments on commit f85387f

Please sign in to comment.