Hacked By AnonymousFox

Current Path : /opt/alt/python36/lib64/python3.6/json/__pycache__/
Upload File :
Current File : //opt/alt/python36/lib64/python3.6/json/__pycache__/tool.cpython-36.opt-2.pyc

3

��2am�@s:ddlZddlZddlZddlZdd�Zedkr6e�dS)�Nc	"Csd}d}tj||d�}|jddtj�dd�|jddtjd	�d
d�|jddd
dd�|j�}|jphtj}|jpttj	}|j
}|�Vy$|r�tj|�}ntj|t
jd�}Wn*tk
r�}zt|��WYdd}~XnXWdQRX|�"tj|||dd�|jd�WdQRXdS)Nzpython -m json.toolzZA simple command line interface for json module to validate and pretty-print JSON objects.)�prog�description�infile�?z-a JSON file to be validated or pretty-printed)�nargs�type�help�outfile�wz%write the output of infile to outfilez--sort-keys�
store_trueFz5sort the output of dictionaries alphabetically by key)�action�defaultr)Zobject_pairs_hook�)�	sort_keys�indent�
)�argparse�ArgumentParser�add_argument�FileType�
parse_argsr�sys�stdinr	�stdoutr�json�load�collections�OrderedDict�
ValueError�
SystemExit�dump�write)	rr�parser�optionsrr	r�obj�e�r&�)/opt/alt/python36/lib64/python3.6/tool.py�mains0
$r(�__main__)rrrrr(�__name__r&r&r&r'�<module>
s

Hacked By AnonymousFox1.0, Coded By AnonymousFox