Commit 25ade23a authored by Julien Muchembled's avatar Julien Muchembled

Make cloudooo.helper.uno* work with Python 2.5

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@41731 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5603ec5f
...@@ -287,7 +287,10 @@ def main(): ...@@ -287,7 +287,10 @@ def main():
param_list = [tuple[0] for tuple in iter(opt_list)] param_list = [tuple[0] for tuple in iter(opt_list)]
try:
import json import json
except ImportError:
import simplejson as json
refresh = None refresh = None
for opt, arg in iter(opt_list): for opt, arg in iter(opt_list):
if opt in ('-h', '--help'): if opt in ('-h', '--help'):
......
...@@ -28,7 +28,10 @@ ...@@ -28,7 +28,10 @@
############################################################################## ##############################################################################
import sys import sys
import json try:
import json
except ImportError:
import simplejson as json
import helper_utils import helper_utils
from os import environ, path, putenv from os import environ, path, putenv
from getopt import getopt, GetoptError from getopt import getopt, GetoptError
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment