]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
CLI: tahoe_check: stop escaping the JSON output when using --raw
authorBrian Warner <warner@allmydata.com>
Tue, 3 Feb 2009 04:12:32 +0000 (21:12 -0700)
committerBrian Warner <warner@allmydata.com>
Tue, 3 Feb 2009 04:12:32 +0000 (21:12 -0700)
src/allmydata/scripts/tahoe_check.py

index ed366f118316b9c22735b00a72f73a1e244863f7..a52d5b2dc93336fe72fc69428f065fd22a67a5cf 100644 (file)
@@ -35,7 +35,8 @@ def check(options):
         return 1
     jdata = resp.read()
     if options.get("raw"):
-        pprint(jdata, stream=stdout)
+        stdout.write(jdata)
+        stdout.write("\n")
         return 0
     data = simplejson.loads(jdata)