26 lines
706 B
Diff
26 lines
706 B
Diff
From 724eab2bcdf020a9dd3893b372730dd19c82f036 Mon Sep 17 00:00:00 2001
|
|
From: fwx937284 <fyq%403195354>
|
|
Date: Wed, 8 Jul 2020 15:24:47 +0800
|
|
Subject: [PATCH] Use Constant.value, not Constant.n
|
|
|
|
---
|
|
mako/_ast_util.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/mako/_ast_util.py b/mako/_ast_util.py
|
|
index d770451..3120659 100644
|
|
--- a/mako/_ast_util.py
|
|
+++ b/mako/_ast_util.py
|
|
@@ -681,7 +681,7 @@ class SourceGenerator(NodeVisitor):
|
|
self.write(repr(node.n))
|
|
# newly needed in Python 3.8
|
|
def visit_Constant(self, node):
|
|
- self.write(repr(node.n))
|
|
+ self.write(repr(node.value))
|
|
|
|
def visit_Tuple(self, node):
|
|
self.write('(')
|
|
--
|
|
2.23.0
|
|
|