diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2014-02-23 12:02:44 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-02-23 12:02:44 -0500 |
commit | 5e8ad33da1daa60111187d491839fc442bd6ee4b (patch) | |
tree | e2f1baa4f1059b43b0f735bd1d5cdd553053f1ed /cherrypy/lib/reprconf.py | |
parent | c567efc602d564d3251b9a309abe38dc7e426efb (diff) | |
download | cherrypy-git-5e8ad33da1daa60111187d491839fc442bd6ee4b.tar.gz |
Add support for NameConstant. Fixes #1294
--HG--
branch : cherrypy-3.2.x
Diffstat (limited to 'cherrypy/lib/reprconf.py')
-rw-r--r-- | cherrypy/lib/reprconf.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cherrypy/lib/reprconf.py b/cherrypy/lib/reprconf.py index c8315b18..efa9706c 100644 --- a/cherrypy/lib/reprconf.py +++ b/cherrypy/lib/reprconf.py @@ -415,6 +415,9 @@ class _Builder3: raise TypeError("unrepr could not resolve the name %s" % repr(name)) + def build_NameConstant(self, o): + return o.value + def build_UnaryOp(self, o): op, operand = map(self.build, [o.op, o.operand]) return op(operand) |