Commits

Jason R. Coombs committed f7e263f

Add support for NameConstant. Fixes #1294

  • Participants
  • Parent commits d5ae208
  • Branches cp4

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)