summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cherrypy/lib/reprconf.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cherrypy/lib/reprconf.py b/cherrypy/lib/reprconf.py
index 291ab663..fc758490 100644
--- a/cherrypy/lib/reprconf.py
+++ b/cherrypy/lib/reprconf.py
@@ -451,6 +451,8 @@ class _Builder3:
def build_NameConstant(self, o):
return o.value
+ build_Constant = build_NameConstant # Python 3.8 change
+
def build_UnaryOp(self, o):
op, operand = map(self.build, [o.op, o.operand])
return op(operand)