mirror of
https://github.com/python/cpython.git
synced 2025-07-30 22:54:16 +00:00
Remove backtick syntax for repr.
This commit is contained in:
parent
b67e15c53c
commit
af0e1544bf
1 changed files with 0 additions and 5 deletions
|
@ -310,11 +310,6 @@ class Unparser:
|
|||
def _Name(self, t):
|
||||
self.write(t.id)
|
||||
|
||||
def _Repr(self, t):
|
||||
self.write("`")
|
||||
self.dispatch(t.value)
|
||||
self.write("`")
|
||||
|
||||
def _Num(self, t):
|
||||
if isinstance(t.n, float) and math.isinf(t.n):
|
||||
# Subsitute overflowing decimal literal for AST infinity
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue