summaryrefslogtreecommitdiff
path: root/simplejson/tool.py
diff options
context:
space:
mode:
authorBob Ippolito <bob@redivi.com>2009-02-16 01:43:51 +0000
committerBob Ippolito <bob@redivi.com>2009-02-16 01:43:51 +0000
commitf909e2fb180a63dccb8311b28ec8ea5db34c9466 (patch)
tree227f3adb0f9f9f404f0aeeb128a524f4513ee717 /simplejson/tool.py
parent3f349017d97fb9143fa55393d15540c547fe9411 (diff)
downloadsimplejson-f909e2fb180a63dccb8311b28ec8ea5db34c9466.tar.gz
whitespace
git-svn-id: http://simplejson.googlecode.com/svn/trunk@167 a4795897-2c25-0410-b006-0d3caba88fa1
Diffstat (limited to 'simplejson/tool.py')
-rw-r--r--simplejson/tool.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/simplejson/tool.py b/simplejson/tool.py
index d918a51..0ba20bb 100644
--- a/simplejson/tool.py
+++ b/simplejson/tool.py
@@ -1,5 +1,6 @@
-r"""Using simplejson from the shell to validate and
-pretty-print::
+r"""Command-line tool to validate and pretty-print JSON
+
+Usage::
$ echo '{"json":"obj"}' | python -m simplejson.tool
{
@@ -7,11 +8,12 @@ pretty-print::
}
$ echo '{ 1.2:3.4}' | python -m simplejson.tool
Expecting property name: line 1 column 2 (char 2)
+
"""
+import sys
import simplejson
def main():
- import sys
if len(sys.argv) == 1:
infile = sys.stdin
outfile = sys.stdout