Permalink
Browse files

MB-5652: Use simplejson instead of json module

Since json module exists since python 2.6, we replace it with
simplejson to make it backward compatible with older python version.

Change-Id: I3a780f4e3a6b0637879005089f8500b88d6059a8
Reviewed-on: http://review.couchbase.org/17552
Tested-by: Bin Cui <bin.cui@gmail.com>
Reviewed-by: Steve Yen <steve.yen@gmail.com>
  • Loading branch information...
1 parent 40bd0f4 commit 9b898b44012466f109caa830409e0db34dd47350 @bcui6611 bcui6611 committed with steveyen Jun 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 util_cli.py
View
@@ -1,7 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-import json
import math
import itertools
@@ -97,4 +96,5 @@ def pretty_float(number, precision=2):
return '%.*f' % (precision, number)
def pretty_print(obj):
+ import simplejson as json
return json.dumps(obj, indent=4, sort_keys=True)

0 comments on commit 9b898b4

Please sign in to comment.