You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by ar...@apache.org on 2025/12/23 15:11:50 UTC
(tooling-trusted-releases) 01/03: Fix non-digit character handling in version_sort_key
This is an automated email from the ASF dual-hosted git repository.
arm pushed a commit to branch previous_sbom_results
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git
commit b508730b276806b06c12a99e7f2cee635c0954c6
Author: Alastair McFarlane <ar...@apache.org>
AuthorDate: Tue Dec 23 14:23:41 2025 +0000
Fix non-digit character handling in version_sort_key
---
atr/util.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/atr/util.py b/atr/util.py
index f037700..d1c9f86 100644
--- a/atr/util.py
+++ b/atr/util.py
@@ -1052,7 +1052,7 @@ def version_sort_key(version: str) -> bytes:
i = j
else:
# Non-digit character, just add it
- result.append(ord(version[i]))
+ result.extend(version[i].encode("utf-8"))
i += 1
return bytes(result)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org