From 5c385a3f12968051a060d5bda389777d4d0c732c Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 29 Sep 2011 14:08:30 +0200 Subject: better json encoding --- module/common/json_layer.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'module/common/json_layer.py') 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 -- cgit v1.2.3