~cv.clearcorp/openobject-server/trunk-lp-927675-module-icon

« back to all changes in this revision

Viewing changes to openerp/tools/safe_eval.py

  • Committer: Olivier Dony
  • Date: 2012-02-14 15:00:22 UTC
  • mfrom: (3974.1.6 oo-server)
  • Revision ID: odo@openerp.com-20120214150022-yx6zi0j4fr2d48uc
[MERGE] Minor bugfixes (missing imports, etc.) courtesy of Florent Xicluna

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
import logging
37
37
import os
38
38
 
39
 
__all__ = ['test_expr', 'safe_eval', 'const_eval', 'ext_eval' ]
 
39
__all__ = ['test_expr', 'safe_eval', 'const_eval']
40
40
 
41
41
# The time module is usually already provided in the safe_eval environment
42
42
# but some code, e.g. datetime.datetime.now() (Windows/Python 2.5.2, bug