Using ujson or simplejson in worker if available.

This commit is contained in:
Andrew Melton 2013-03-19 15:46:45 -04:00
parent 8dba9e2e8b
commit 8369eeafbb

View File

@ -17,7 +17,6 @@
# to set TENANT_ID and URL to point to your StackTach web server.
import datetime
import json
import kombu
import kombu.entity
import kombu.mixins
@ -25,6 +24,14 @@ import logging
import sys
import time
try:
import ujson as json
except ImportError:
try:
import simplejson as json
except ImportError:
import json
from pympler.process import ProcessMemoryInfo
from stacktach import db, views