Permalink
Browse files

json, not django,utils.simplejson

  • Loading branch information...
1 parent c9828a3 commit 8593e3417752b7151e4c28829b71aa0b85799576 @lamby lamby committed Mar 7, 2014
Showing with 3 additions and 4 deletions.
  1. +3 −4 django_lightweight_queue/job.py
@@ -1,8 +1,7 @@
import sys
+import json
import time
-from django.utils import simplejson
-
from .utils import get_path, get_middleware
class Job(object):
@@ -18,7 +17,7 @@ def __repr__(self):
@classmethod
def from_json(cls, json):
- return cls(**simplejson.loads(json))
+ return cls(**json.loads(json))
def run(self):
start = time.time()
@@ -57,7 +56,7 @@ def get_fn(self):
def to_json(self):
if self._json is None:
- self._json = simplejson.dumps({
+ self._json = json.dumps({
'path': self.path,
'args': self.args,
'kwargs': self.kwargs,

0 comments on commit 8593e34

Please sign in to comment.