Skip to content

Commit 655cd52

Browse files
authored
Update python/private/version.bzl
1 parent 8c90d9f commit 655cd52

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/private/version.bzl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,8 @@ def _parse(version_str, strict = True):
523523
Returns:
524524
string containing the normalized version.
525525
"""
526-
version = version_str.strip() # PEP 440: Leading and Trailing Whitespace
526+
# https://packaging.python.org/en/latest/specifications/version-specifiers/#leading-and-trailing-whitespace
527+
version = version_str.strip()
527528
is_prefix = False
528529

529530
if not strict:

0 commit comments

Comments
 (0)