Skip to content

Commit 7fef735

Browse files
authored
removed unused _VERSION_CMP
1 parent 1c45c9e commit 7fef735

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

python/private/pypi/pep508_evaluate.bzl

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,6 @@ load("//python/private:py_wheel_normalize_pep440.bzl", "parse_version")
2222
# The expression parsing and resolution for the PEP508 is below
2323
#
2424

25-
# Taken from
26-
# https://peps.python.org/pep-0508/#grammar
27-
#
28-
# version_cmp = wsp* '<' | '<=' | '!=' | '==' | '>=' | '>' | '~=' | '==='
29-
_VERSION_CMP = sorted(
30-
[
31-
i.strip(" '")
32-
for i in "'<' | '<=' | '!=' | '==' | '>=' | '>' | '~=' | '==='".split(" | ")
33-
],
34-
key = lambda x: (-len(x), x),
35-
)
36-
3725
_STATE = enum(
3826
STRING = "string",
3927
VAR = "var",

0 commit comments

Comments
 (0)