[ Root System Explorer ]
Location:
Root
/
proc
/
thread-self
/
root
/
opt
/
alt
/
python311
/
bin
/
__pycache__
+ Folder
+ File
Upload
Editing: jp.cpython-311.pyc
� Ñpi� � � � d dl Z d dlZd dlZd dlmZ d dlZd dlmZ d� Zedk r e j e� � � � dS dS )� N)�pformat)� exceptionsc �n � t j � � } | � d� � | � ddd�� � | � ddd� � � | � � � }|j }|j rkt j |j � � }t j � t |j � � � � t j � d � � dS |j rBt |j d� � 5 }t j |� � }d d d � � n# 1 swxY w Y n2t j � � � }t j |� � } t j � t j t j ||� � d d�� � � � t j � d � � d S # t, j $ r-}t j � d|z � � Y d }~dS d }~wt, j $ r-}t j � d|z � � Y d }~dS d }~wt, j $ r-}t j � d|z � � Y d }~dS d }~wt, j $ r-}t j � d|z � � Y d }~dS d }~ww xY w)N� expressionz-fz --filenamezaThe filename containing the input data. If a filename is not given then data is read from stdin.)�helpz--ast� store_truez-Pretty print the AST, do not search the data.)�actionr � r �r� F)�indent�ensure_asciizinvalid-arity: %s � zinvalid-type: %s zunknown-function: %s zsyntax-error: %s )�argparse�ArgumentParser�add_argument� parse_argsr �ast�jmespath�compile�sys�stdout�writer �parsed�filename�open�json�load�stdin�read�loads�dumps�searchr � ArityError�stderr�JMESPathTypeError�UnknownFunctionError� ParseError)�parser�argsr �f�data�es �B/opt/alt/python311/lib/python3.11/site-packages/../../../bin/jp.py�mainr/ s� � � � $� &� &�F� ����%�%�%� ����l�1� � 3� 3� 3� �����M� � P� P� P������D���J��x� ��%�d�o�6�6� �� �����!2�3�3�4�4�4�� ��������q��}� � �$�-�� %� %� ���9�Q�<�<�D� � � � � � � � � � � ���� � � � �� �y�~�~�����z�$������ ������O�J��-�-�a�e�M� M� M� N� N� N�� ����������� � � � �� ���.��2�3�3�3��q�q�q�q�q������'� � � �� ���-��1�2�2�2��q�q�q�q�q������*� � � �� ���1�A�5�6�6�6��q�q�q�q�q������ � � � �� ���-��1�2�2�2��q�q�q�q�q��������sO �D#�#D'�*D'�"A&G � J4�"H�J4�"H;�;J4� "I5�5J4�"J/�/J4�__main__) r r r �pprintr r r r/ �__name__�exit� � r. �<module>r6 s� �� � � � � ���� ���� � � � � � � ���� � � � � � �&� &� &�R �z����C�H�T�T�V�V������ �r5
SAVE CHANGES
[ CANCEL ]
Name
Type
Actions
.. (Parent Directory)
📄 jp.cpython-311.pyc
FILE
Ren
[EDIT]
DEL