diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-09-29 14:08:30 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-09-29 14:08:30 +0200 |
commit | 5c385a3f12968051a060d5bda389777d4d0c732c (patch) | |
tree | b42a8ce95023fa04dcff5a13717a4637d1faff12 /module/common | |
parent | new plugin Base class providing useful methods (diff) | |
download | pyload-5c385a3f12968051a060d5bda389777d4d0c732c.tar.xz |
better json encoding
Diffstat (limited to 'module/common')
-rw-r--r-- | module/common/json_layer.py | 5 |
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 |