~openerp-dev/openobject-server/trunk-staging-mat

« back to all changes in this revision

Viewing changes to openerp/tools/safe_eval.py

  • Committer: Martin Trigaux
  • Date: 2014-05-12 08:05:23 UTC
  • mfrom: (5189.1.22 saas-4)
  • Revision ID: mat@openerp.com-20140512080523-t1ugjl53jfgohfde
Forward-port of latest saas-4, up to revision 5211 (revid fme@openerp.com-20140509164408-rtml4brrhpiv4zz9)

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
    'CONTINUE_LOOP', 'RAISE_VARARGS',
72
72
    # New in Python 2.7 - http://bugs.python.org/issue4715 :
73
73
    'JUMP_IF_FALSE_OR_POP', 'JUMP_IF_TRUE_OR_POP', 'POP_JUMP_IF_FALSE',
74
 
    'POP_JUMP_IF_TRUE', 'SETUP_EXCEPT', 'END_FINALLY', 'LOAD_FAST',
 
74
    'POP_JUMP_IF_TRUE', 'SETUP_EXCEPT', 'END_FINALLY',
 
75
    'LOAD_FAST', 'STORE_FAST', 'DELETE_FAST',
75
76
    'LOAD_GLOBAL', # Only allows access to restricted globals
76
77
    ] if x in opmap))
77
78