Changeset 1525
- Timestamp:
- 12/11/06 17:04:47
- Files:
-
- branches/cherrypy-2.x/cherrypy/lib/cptools.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/cherrypy-2.x/cherrypy/lib/cptools.py
r1523 r1525 350 350 351 351 # public domain "unrepr" implementation, found on the web and then improved. 352 import compiler353 352 354 353 def getObj(s): 354 try: 355 import compiler 356 except ImportError: 357 # Fallback to eval when compiler package is not available, 358 # e.g. IronPython 1.0. 359 return eval(s) 360 355 361 s = "a=" + s 356 362 p = compiler.parse(s)

