summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecflett <alecflett@5914aa95-5b3a-0410-a3b5-7b719e7fe9b2>2010-01-21 00:33:12 +0000
committeralecflett <alecflett@5914aa95-5b3a-0410-a3b5-7b719e7fe9b2>2010-01-21 00:33:12 +0000
commit52cd88b034b46edb31b00f32ad53eed08efcce04 (patch)
treee35224f9c1f39f6491ca0a55613d503fb3c56d4e
parent4a9c8661dc28d15773d48c78f103ab0e54d48814 (diff)
fix simplejson references
git-svn-id: http://freebase-python.googlecode.com/svn/trunk@241 5914aa95-5b3a-0410-a3b5-7b719e7fe9b2
-rwxr-xr-xfreebase/fcl/commands.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/freebase/fcl/commands.py b/freebase/fcl/commands.py
index 0f1389b..c6acbb3 100755
--- a/freebase/fcl/commands.py
+++ b/freebase/fcl/commands.py
@@ -721,7 +721,7 @@ def cmd_find(fb, qstr):
%prog find
"""
if qstr.startswith('{'):
- q = simplejson.loads(qstr)
+ q = json.loads(qstr)
else:
q = rison.loads('(' + qstr + ')')
@@ -744,7 +744,7 @@ def cmd_q(fb, qstr):
%prog q
"""
if qstr.startswith('{'):
- q = simplejson.loads(qstr)
+ q = json.loads(qstr)
else:
q = rison.loads('(' + qstr + ')')
@@ -756,7 +756,7 @@ def cmd_q(fb, qstr):
print '[',
else:
print ',',
- print simplejson.dumps(result, indent=2),
+ print json.dumps(result, indent=2),
print ']'
def cmd_open(fb, id):
@@ -809,11 +809,11 @@ def cmd_log(fb, id):
for link in linksfrom:
# fb.trow(link.master_property.id, ...)
- print simplejson.dumps(link, indent=2)
+ print json.dumps(link, indent=2)
for link in valuesfrom:
# fb.trow(link.master_property.id, ...)
- print simplejson.dumps(link, indent=2)
+ print json.dumps(link, indent=2)