Changeset 1794
- Timestamp:
- 10/28/07 12:53:16
- Files:
-
- trunk/cherrypy/_cpconfig.py (modified) (1 diff)
- trunk/cherrypy/lib/__init__.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/_cpconfig.py
r1758 r1794 344 344 value = unrepr(value) 345 345 except Exception, x: 346 msg = ("Config error in section: %s, option: %s, value: %s" % 347 (repr(section), repr(option), repr(value))) 346 msg = ("Config error in section: %r, option: %r, " 347 "value: %r. Config values must be valid Python." % 348 (section, option, value)) 348 349 raise ValueError(msg, x.__class__.__name__, x.args) 349 350 result[section][option] = value trunk/cherrypy/lib/__init__.py
r1725 r1794 129 129 return eval(s) 130 130 131 p = compiler.parse(" a=" + s)131 p = compiler.parse("__tempvalue__ = " + s) 132 132 obj = p.getChildren()[1].getChildren()[0].getChildren()[1] 133 133

