We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23d5140 commit 59fd016Copy full SHA for 59fd016
Lib/annotationlib.py
@@ -560,17 +560,6 @@ def unary_op(self):
560
del _make_unary_op
561
562
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
574
def _template_to_ast_constructor(template):
575
"""Convert a `template` instance to a non-literal AST."""
576
args = []
0 commit comments