summaryrefslogtreecommitdiffstats
path: root/Tools/clinic
diff options
context:
space:
mode:
authorErlend E. Aasland <erlend@python.org>2023-08-02 09:22:17 (GMT)
committerGitHub <noreply@github.com>2023-08-02 09:22:17 (GMT)
commit439466a02b145b522a8969267264743706336501 (patch)
tree1457f40c3ba9b178a974230a7ca7c1668d919c37 /Tools/clinic
parentb4d889778198e11257c3ed7ab456539b3933d737 (diff)
downloadcpython-439466a02b145b522a8969267264743706336501.zip
cpython-439466a02b145b522a8969267264743706336501.tar.gz
cpython-439466a02b145b522a8969267264743706336501.tar.bz2
gh-104146: Remove dead code from Argument Clinic (#107555)
Diffstat (limited to 'Tools/clinic')
-rwxr-xr-xTools/clinic/clinic.py4
-rw-r--r--Tools/clinic/cpp.py1
2 files changed, 0 insertions, 5 deletions
diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py
index 642fb7e..5f7d41e 100755
--- a/Tools/clinic/clinic.py
+++ b/Tools/clinic/clinic.py
@@ -1098,7 +1098,6 @@ class CLanguage(Language):
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():
@@ -1191,7 +1190,6 @@ class CLanguage(Language):
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):
@@ -4645,13 +4643,11 @@ class DSLParser:
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
diff --git a/Tools/clinic/cpp.py b/Tools/clinic/cpp.py
index fbac813..5b7fa06 100644
--- a/Tools/clinic/cpp.py
+++ b/Tools/clinic/cpp.py
@@ -1,7 +1,6 @@
import dataclasses as dc
import re
import sys
-from collections.abc import Callable
from typing import NoReturn