summaryrefslogtreecommitdiffstats
path: root/module/common
diff options
context:
space:
mode:
Diffstat (limited to 'module/common')
-rw-r--r--module/common/json_layer.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/common/json_layer.py b/module/common/json_layer.py
index e9ed003a0..a075d2527 100644
--- a/module/common/json_layer.py
+++ b/module/common/json_layer.py
@@ -1,12 +1,13 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-
# abstraction layer for json operations
-try: # since python 2.7
+try: # since python 2.6
+ import json
from json import loads as json_loads
from json import dumps as json_dumps
except ImportError:
+ import module.lib.simplejson as json
from module.lib.simplejson import loads as json_loads
from module.lib.simplejson import dumps as json_dumps \ No newline at end of file