From 52cd88b034b46edb31b00f32ad53eed08efcce04 Mon Sep 17 00:00:00 2001 From: alecflett Date: Thu, 21 Jan 2010 00:33:12 +0000 Subject: fix simplejson references git-svn-id: http://freebase-python.googlecode.com/svn/trunk@241 5914aa95-5b3a-0410-a3b5-7b719e7fe9b2 --- freebase/fcl/commands.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'freebase') 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) -- cgit v1.3.1