Permalink
Browse files

Import simplejson as json

  • Loading branch information...
Mark Costello
Mark Costello committed Mar 22, 2013
1 parent 2cee541 commit d11ce9aad68ca6d3894bc91f6c76c0d082806540
Showing with 4 additions and 1 deletion.
  1. +4 −1 rdbtools/memprofiler.py
View
@@ -4,7 +4,10 @@
from rdbtools.utils import namedtuple
import random
-import json
+try:
+ import json
+except ImportError:
+ import simplejson as json
from rdbtools.parser import RdbCallback
from rdbtools.callbacks import encode_key

0 comments on commit d11ce9a

Please sign in to comment.