[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.17.78.182: ~ $


��Yfm�@sYdZddlZddlZddlZddlZdd�ZedkrUe�dS)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	#Cszd}d}tjd|d|�}|jddddtj�d	d
�|jddddtjd�d	d
�|jdddddd	d�|j�}|jp�tj}|jp�tj	}|j
}|�my4|r�tj|�}ntj|dt
j�}Wn1tk
r7}zt|��WYdd}~XnXWdQRX|�.tj||d|dd�|jd�WdQRXdS)Nzpython -m json.toolzZA simple command line interface for json module to validate and pretty-print JSON objects.�prog�description�infile�nargs�?�type�helpz-a JSON file to be validated or pretty-printed�outfile�wz%write the output of infile to outfilez--sort-keys�action�
store_true�defaultFz5sort the output of dictionaries alphabetically by keyZobject_pairs_hook�	sort_keys�indent��
)�argparse�ArgumentParser�add_argumentZFileType�
parse_argsr�sys�stdinr	�stdoutr�json�load�collections�OrderedDict�
ValueError�
SystemExit�dump�write)	rr�parserZoptionsrr	r�obj�e�r$�./opt/alt/python35/lib64/python3.5/json/tool.py�mains0!	&r&�__main__)�__doc__rrrrr&�__name__r$r$r$r%�<module>s

Filemanager

Name Type Size Permission Actions
__init__.cpython-35.opt-1.pyc File 11.94 KB 0644
__init__.cpython-35.opt-2.pyc File 2.54 KB 0644
__init__.cpython-35.pyc File 11.94 KB 0644
decoder.cpython-35.opt-1.pyc File 10.42 KB 0644
decoder.cpython-35.opt-2.pyc File 6.36 KB 0644
decoder.cpython-35.pyc File 10.42 KB 0644
encoder.cpython-35.opt-1.pyc File 11.72 KB 0644
encoder.cpython-35.opt-2.pyc File 7.46 KB 0644
encoder.cpython-35.pyc File 11.72 KB 0644
scanner.cpython-35.opt-1.pyc File 2.16 KB 0644
scanner.cpython-35.opt-2.pyc File 2.12 KB 0644
scanner.cpython-35.pyc File 2.16 KB 0644
tool.cpython-35.opt-1.pyc File 1.64 KB 0644
tool.cpython-35.opt-2.pyc File 1.35 KB 0644
tool.cpython-35.pyc File 1.64 KB 0644