Skip to content

Commit 59fd016

Browse files
committed
Remove vestigial code from annotationlib
1 parent 23d5140 commit 59fd016

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

Lib/annotationlib.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -560,17 +560,6 @@ def unary_op(self):
560560
del _make_unary_op
561561

562562

563-
def _conversion_ast_value(conversion):
564-
"""Convert a `conversion` character to an AST-friendly Constant."""
565-
return -1 if conversion is None else ord(conversion)
566-
567-
568-
def _format(format_spec):
569-
"""Convert a `format_spec` string to an AST-friendly Constant."""
570-
value = format_spec or None # empty string -> None
571-
return ast.Constant(value=value)
572-
573-
574563
def _template_to_ast_constructor(template):
575564
"""Convert a `template` instance to a non-literal AST."""
576565
args = []

0 commit comments

Comments
 (0)