Skip to content

Commit 8c3e9fa

Browse files
pythongh-104146: Remove dead code from Argument Clinic
Remove commented out lines from clinic.py
1 parent b4d8897 commit 8c3e9fa

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Tools/clinic/clinic.py

-4
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,6 @@ def parser_body(
10981098

10991099
parsearg = p.converter.parse_arg(argname, displayname)
11001100
if parsearg is None:
1101-
#print('Cannot convert %s %r for %s' % (p.converter.__class__.__name__, p.converter.format_unit, p.converter.name), file=sys.stderr)
11021101
parser_code = None
11031102
break
11041103
if has_optional or p.is_optional():
@@ -1191,7 +1190,6 @@ def parser_body(
11911190
displayname = p.get_displayname(i+1)
11921191
parsearg = p.converter.parse_arg(argname_fmt % i, displayname)
11931192
if parsearg is None:
1194-
#print('Cannot convert %s %r for %s' % (p.converter.__class__.__name__, p.converter.format_unit, p.converter.name), file=sys.stderr)
11951193
parser_code = None
11961194
break
11971195
if add_label and (i == pos_only or i == max_pos):
@@ -4645,13 +4643,11 @@ def next(
46454643
state: StateKeeper,
46464644
line: str | None = None
46474645
) -> None:
4648-
# real_print(self.state.__name__, "->", state.__name__, ", line=", line)
46494646
self.state = state
46504647
if line is not None:
46514648
self.state(line)
46524649

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

0 commit comments

Comments
 (0)