We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e64c199 commit 74b029dCopy full SHA for 74b029d
1 file changed
python/private/version.bzl
@@ -518,11 +518,10 @@ def _parse(version_str, strict = True):
518
Returns:
519
string containing the normalized version.
520
"""
521
- if strict:
522
- version_str = version_str.strip() # PEP 440: Leading and Trailing Whitespace
523
- is_prefix = False
524
- else:
525
+ version_str = version_str.strip() # PEP 440: Leading and Trailing Whitespace
+ is_prefix = False
+
+ if not strict:
526
is_prefix = version_str.endswith(".*")
527
version_str = version_str.strip(" .*") # PEP 440: Leading and Trailing Whitespace and ".*"
528
0 commit comments