blob: b3855dadb843e551c10af03890bd6f5171e9d656 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- contrib/python/packaging/py3/packaging/utils.py (index)
+++ contrib/python/packaging/py3/packaging/utils.py (working tree)
@@ -35,7 +35,7 @@ def canonicalize_name(name: str) -> NormalizedName:
return cast(NormalizedName, value)
-def canonicalize_version(version: Union[Version, str]) -> str:
+def canonicalize_version(version: Union[Version, str], strip_trailing_zero: bool = False) -> str:
"""
This is very similar to Version.__str__, but has one subtle difference
with the way it handles the release segment.
|