mirror of
https://github.com/python/cpython.git
synced 2025-09-18 14:40:43 +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):
|
def _Name(self, t):
|
||||||
self.write(t.id)
|
self.write(t.id)
|
||||||
|
|
||||||
def _Repr(self, t):
|
|
||||||
self.write("`")
|
|
||||||
self.dispatch(t.value)
|
|
||||||
self.write("`")
|
|
||||||
|
|
||||||
def _Num(self, t):
|
def _Num(self, t):
|
||||||
if isinstance(t.n, float) and math.isinf(t.n):
|
if isinstance(t.n, float) and math.isinf(t.n):
|
||||||
# Subsitute overflowing decimal literal for AST infinity
|
# Subsitute overflowing decimal literal for AST infinity
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue