404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@3.145.59.167: ~ $
3

�Xf�@s�ddlmZddlZddlZddlZddlmZddlmZdd�Z	dd�Z
ejd	d
�Zej
ddd
de
dd�ej
ddddd�ej
dde	dd�ej
dde
d�dd�Zejdd�fd d!�Zejejfd"d#�ZdS)$�)�absolute_importN)�namedAny)�
validator_forcCsd|krd|}t|�S)N�.zjsonschema.)r)�name�r�/usr/lib/python3.6/cli.py�_namedAnyWithDefault
sr	c	Cst|��}tj|�SQRXdS)N)�open�json�load)�path�filerrr�
_json_files
rzJSON Schema Validation CLI)�descriptionz-iz
--instance�append�	instancesz[a path to a JSON instance (i.e. filename.json)to validate (may be specified multiple times))�action�dest�type�helpz-Fz--error-formatz"{error.instance}: {error.message}
z�the format to use for each error output message, specified in a form suitable for passing to str.format, which will be called with 'error' for each error)�defaultrz-Vz--validatorz�the fully qualified object name of a validator to use, or, for validators that are registered with jsonschema, simply the name of the class.)rr�schemaz7the JSON Schema to validate with (i.e. filename.schema))rrcCs6ttj|pdgd��}|ddkr2t|d�|d<|S)Nz--help)�args�	validatorr)�vars�parser�
parse_argsr)r�	argumentsrrrr;sr�cCstjtt|d�d��dS)N)r)r)�sys�exit�runr)rrrr�mainBsr#cCsp|d}|d|dd�}|j|d�d}x>|dp8fD].}x(|j|�D]}|j|j|d��d}qJWq:W|S)	N�error_formatrr)rFr)�errorT)Zcheck_schemaZiter_errors�write�format)r�stdout�stderrr$rZerrored�instancer%rrrr"Fsr")Z
__future__r�argparserr Zjsonschema._reflectrZjsonschema.validatorsrr	r�ArgumentParserr�add_argumentr�argvr#r(r)r"rrrr�<module>s<

Filemanager

Name Type Size Permission Actions
__init__.cpython-36.opt-1.pyc File 887 B 0644
__init__.cpython-36.pyc File 887 B 0644
__main__.cpython-36.opt-1.pyc File 164 B 0644
__main__.cpython-36.pyc File 164 B 0644
_format.cpython-36.opt-1.pyc File 7.08 KB 0644
_format.cpython-36.pyc File 7.08 KB 0644
_reflect.cpython-36.opt-1.pyc File 4.71 KB 0644
_reflect.cpython-36.pyc File 4.71 KB 0644
_utils.cpython-36.opt-1.pyc File 6.36 KB 0644
_utils.cpython-36.pyc File 6.36 KB 0644
_validators.cpython-36.opt-1.pyc File 9.54 KB 0644
_validators.cpython-36.pyc File 9.54 KB 0644
_version.cpython-36.opt-1.pyc File 179 B 0644
_version.cpython-36.pyc File 179 B 0644
cli.cpython-36.opt-1.pyc File 2.19 KB 0644
cli.cpython-36.pyc File 2.19 KB 0644
compat.cpython-36.opt-1.pyc File 1.42 KB 0644
compat.cpython-36.pyc File 1.42 KB 0644
exceptions.cpython-36.opt-1.pyc File 8.14 KB 0644
exceptions.cpython-36.pyc File 8.14 KB 0644
validators.cpython-36.opt-1.pyc File 13.25 KB 0644
validators.cpython-36.pyc File 13.25 KB 0644