Skip to content

Commit

Permalink
pythongh-104146: Remove dead code from Argument Clinic
Browse files Browse the repository at this point in the history
Remove commented out lines from clinic.py
  • Loading branch information
erlend-aasland committed Aug 2, 2023
1 parent b4d8897 commit 8c3e9fa
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Tools/clinic/clinic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1098,7 +1098,6 @@ def parser_body(

parsearg = p.converter.parse_arg(argname, displayname)
if parsearg is None:
#print('Cannot convert %s %r for %s' % (p.converter.__class__.__name__, p.converter.format_unit, p.converter.name), file=sys.stderr)
parser_code = None
break
if has_optional or p.is_optional():
Expand Down Expand Up @@ -1191,7 +1190,6 @@ def parser_body(
displayname = p.get_displayname(i+1)
parsearg = p.converter.parse_arg(argname_fmt % i, displayname)
if parsearg is None:
#print('Cannot convert %s %r for %s' % (p.converter.__class__.__name__, p.converter.format_unit, p.converter.name), file=sys.stderr)
parser_code = None
break
if add_label and (i == pos_only or i == max_pos):
Expand Down Expand Up @@ -4645,13 +4643,11 @@ def next(
state: StateKeeper,
line: str | None = None
) -> None:
# real_print(self.state.__name__, "->", state.__name__, ", line=", line)
self.state = state
if line is not None:
self.state(line)

def state_dsl_start(self, line: str) -> None:
# self.block = self.ClinicOutputBlock(self)
if not self.valid_line(line):
return

Expand Down

0 comments on commit 8c3e9fa

Please sign in to comment.