diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-10-03 11:43:59 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-10-03 11:43:59 +0200 |
commit | 5c3dbb734b7f958cb1bb227c2ffd934906820b3e (patch) | |
tree | e123e91e90680cd14474ffd265eb1c4808746fe2 /module/web/api_app.py | |
parent | fixed urlmatcher, clear links on start option (diff) | |
download | pyload-5c3dbb734b7f958cb1bb227c2ffd934906820b3e.tar.xz |
new SafeEval
Diffstat (limited to 'module/web/api_app.py')
-rw-r--r-- | module/web/api_app.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/module/web/api_app.py b/module/web/api_app.py index c14eb6ed5..61be8b510 100644 --- a/module/web/api_app.py +++ b/module/web/api_app.py @@ -13,11 +13,7 @@ from utils import toDict, set_session from webinterface import PYLOAD from module.common.json_layer import json - -try: - from ast import literal_eval -except ImportError: # python 2.5 - from module.lib.SafeEval import safe_eval as literal_eval +from module.lib.SafeEval import const_eval as literal_eval # json encoder that accepts TBase objects class TBaseEncoder(json.JSONEncoder): |