Skip to content

Instantly share code, notes, and snippets.

@kryskool
Created October 31, 2014 09:57
Show Gist options
  • Save kryskool/8aff3058639a40e9a281 to your computer and use it in GitHub Desktop.
Save kryskool/8aff3058639a40e9a281 to your computer and use it in GitHub Desktop.
[PATCH] tools: remove useless attributes
---
server/openerp/tools/safe_eval.py | 2 --
1 file changed, 2 deletions(-)
diff --git a/server/openerp/tools/safe_eval.py b/server/openerp/tools/safe_eval.py
index b99de38..7ac3b51 100644
--- a/server/openerp/tools/safe_eval.py
+++ b/server/openerp/tools/safe_eval.py
@@ -220,8 +220,6 @@ def safe_eval(expr, globals_dict=None, locals_dict=None, mode="eval", nocopy=Fal
'False': False,
'None': None,
'str': str,
- 'globals': locals,
- 'locals': locals,
'bool': bool,
'dict': dict,
'list': list,
--
2.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment