From ab523fd0090571a62dda91e07e41dadd3b105f1d Mon Sep 17 00:00:00 2001 From: Patrick Speiser Date: Sun, 30 Sep 2012 18:35:02 +0200 Subject: [PATCH] Remove python json depedency for people using python <2.6 --- headphones/webserve.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/headphones/webserve.py b/headphones/webserve.py index 4696b3c1..e5ef3778 100644 --- a/headphones/webserve.py +++ b/headphones/webserve.py @@ -29,7 +29,6 @@ from headphones import logger, searcher, db, importer, mb, lastfm, librarysync from headphones.helpers import checked, radio,today import lib.simplejson as simplejson -import json @@ -508,7 +507,7 @@ class WebInterface(object): 'iTotalRecords':totalcount, 'aaData':rows, } - s = json.dumps(dict) + s = simplejson.dumps(dict) cherrypy.response.headers['Content-type'] = 'application/json' return s getArtists_json.exposed=True