Skip to content

Commit a5be4c7

Browse files
committed
format/lint
1 parent ba2d225 commit a5be4c7

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

python/private/version.bzl

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -297,10 +297,9 @@ def accept_separator_alnum(parser):
297297
Returns:
298298
whether a separator and an alphanumeric string were accepted.
299299
"""
300-
301-
# Input is "0.1.0+brt.9e"
302300
ctx = parser.open_context()
303301

302+
# PEP 440: Local version segments
304303
if not accept(parser, _in([".", "-", "_"]), "."):
305304
return parser.discard()
306305

@@ -316,15 +315,6 @@ def accept_separator_alnum(parser):
316315

317316
return parser.discard()
318317

319-
# PEP 440: Local version segments
320-
if (
321-
accept(parser, _in([".", "-", "_"]), ".") and
322-
(accept_digits(parser) or accept_alnum(parser))
323-
):
324-
return parser.accept()
325-
326-
return parser.discard()
327-
328318
def accept_separator_alnum_sequence(parser):
329319
"""Accept a sequence of separator+alphanumeric.
330320

0 commit comments

Comments
 (0)