Commits

Jason R. Coombs committed 9da2315

Add support for NameConstant. Fixes #1294

Comments (0)

Files changed (1)

cherrypy/lib/reprconf.py

 
         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)