ok

Mini Shell

Direktori : /proc/thread-self/root/opt/alt/python34/lib64/python3.4/json/__pycache__/
Upload File :
Current File : //proc/thread-self/root/opt/alt/python34/lib64/python3.4/json/__pycache__/tool.cpython-34.pyc

�
e f��@sDdZddlZddlZdd�Zedkr@e�ndS)aCommand-line tool to validate and pretty-print JSON

Usage::

    $ echo '{"json":"obj"}' | python -m json.tool
    {
        "json": "obj"
    }
    $ echo '{ 1.2:3.4}' | python -m json.tool
    Expecting property name enclosed in double quotes: line 1 column 3 (char 2)

�Nc"CsJttj�dkr*tj}tj}n�ttj�dkrattjdd�}tj}n[ttj�dkr�ttjdd�}ttjdd�}nttjdd��|�Lytj|�}Wn1t	k
r	}zt|��WYdd}~XnXWdQX|�.tj
||dd	d
d�|jd�WdQXdS)
N���r��wrz [infile [outfile]]Z	sort_keysT�indent��
)�len�sys�argv�stdin�stdout�open�
SystemExit�json�load�
ValueError�dump�write)ZinfileZoutfile�obj�e�r�./opt/alt/python34/lib64/python3.4/json/tool.py�mains$	%r�__main__)�__doc__rrr�__name__rrrr�<module>s


Zerion Mini Shell 1.0