auto parsing of json content-type, thanks Niphlod

This commit is contained in:
mdipierro
2013-04-15 10:16:18 -05:00
parent 9fdb586d03
commit 40918f44fd
3 changed files with 37 additions and 6 deletions
+2 -2
View File
@@ -12,10 +12,10 @@ from languages import lazyT
import contrib.rss2 as rss2
try:
import json as json_parser # try stdlib (Python 2.6)
import simplejson as json_parser # try external module
except ImportError:
try:
import simplejson as json_parser # try external module
import json as json_parser # try stdlib (Python >= 2.6)
except:
import contrib.simplejson as json_parser # fallback to pure-Python module