403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.85
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/jedi/inference/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/jedi/inference/__pycache__/analysis.cpython-311.pyc
�

p�{cS���dZddlmZddlmZddlmZdedfdedfd	e	d
fde
dfd
e
dfde
dfde
dfde
dfde
dfde
dfde
dfde
dfde
dfdedfdedfd�ZGd�d��Z
Gd�de
��Zde
dfd�Zd�Zd�Zd!d �ZdS)"z
Module for statical analysis.
�)�tree)�debug)�	is_string�zPotential AttributeError.�zPotential NameError.�zPotential ImportError.�N�����	�
���
��)�attribute-errorz
name-errorzimport-errorztype-error-too-many-argumentsztype-error-too-few-argumentsztype-error-keyword-argumentztype-error-multiple-valuesztype-error-star-starztype-error-starztype-error-operationztype-error-not-iterableztype-error-isinstanceztype-error-not-subscriptablezvalue-error-too-many-valueszvalue-error-too-few-valuesc�v�eZdZdd�Zed���Zed���Zed���Zd�Zd�Z	d�Z
d	�Zd
�ZdS)�ErrorNc�r�||_||_||_|�t|jd}||_dS)Nr)�path�
_start_pos�name�CODES�message)�selfr�module_path�	start_posrs     �9/usr/lib/python3/dist-packages/jedi/inference/analysis.py�__init__zError.__init__s8����	�#�����	��?��D�I�&�q�)�G������c��|jdS�Nr�r�rs r!�linez
Error.line&�����q�!�!r#c��|jdS)Nrr&r's r!�columnzError.column*r)r#c�v�|jjd}|tt|jd��zSr%)�	__class__�__name__�strrr)r�firsts  r!�codez
Error.code.s2����'��*���s�5���+�A�.�/�/�/�/r#c	�T�|j�d|j�d|j�d|j�d|j��	S)N�:�: � )rr(r+r1rr's r!�__str__z
Error.__str__4s4��$(�I�I�I�t�y�y�y�$�+�+�+�$(�I�I�I�t�|�|�=�	=r#c�b�|j|jko|j|jko|j|jkS�N)rrr�r�others  r!�__eq__zError.__eq__8s5���	�U�Z�'�8�D�I���,C�8��O�u�'7�7�	9r#c�.�|�|��Sr8)r;r9s  r!�__ne__zError.__ne__<s���;�;�u�%�%�%�%r#c�D�t|j|j|jf��Sr8)�hashrrrr's r!�__hash__zError.__hash__?s���T�Y�����;�<�<�<r#c�z�d|jj�d|j�d|j�d|jd�d|jd�d�S)	N�<r5r4�@r�,r�>)r-r.rrrr's r!�__repr__zError.__repr__BsN���&*�n�&=�&=�&=�&*�i�i�i�����&*�o�a�&8�&8�&8�$�/�!�:L�:L�:L�N�	Nr#r8)
r.�
__module__�__qualname__r"�propertyr(r+r1r6r;r=r@rF�r#r!rrs������������"�"��X�"��"�"��X�"��0�0��X�0�
=�=�=�9�9�9�&�&�&�=�=�=�N�N�N�N�Nr#rc��eZdZdS)�WarningN)r.rGrHrJr#r!rLrLHs�������Dr#rLc�N�t|d}t||||��rdS|���}|���}||||j|��}	tjt|	��d���|jj	�
|	��|	S)NrF)�format)r�_check_for_exception_catch�get_root_context�
py__file__r r�warningr/�inference_state�analysis�append)
�node_context�
error_name�noder�typ�payload�	exception�module_contextr�issue_instances
          r!�addr^Ls����j�!�!�$�I�!�,��i��I�I����"�2�2�4�4�N� �+�+�-�-�K��S��[�$�.�'�J�J�N�	�M�#�n�%�%�e�4�4�4�4�� �)�0�0��@�@�@��r#c����|���}|j���dS	����d}n#t$rYdSwxYwt	�fd�|D����S)zU
    Check if there's any setattr method inside an instance. If so, return True.
    NF�setattrc3��K�|]D}�j|jcxko
�jknco |jjdko|jj|kV��EdS)�funcdefN)r �end_pos�parent�typer)�.0�nrXs  �r!�	<genexpr>z%_check_for_setattr.<locals>.<genexpr>is~�����$�$���~���:�:�:�:�d�l�:�:�:�:�K���
��2�I�q�x�}��7I�J�$�$�$�$�$�$r#)rP�	tree_node�get_used_names�KeyError�any)�instance�module�
stmt_namesrXs   @r!�_check_for_setattrrpZs�����
&�
&�
(�
(�F���D��|��u���(�(�*�*�9�5�
�
�������u�u������$�$�$�$�#�$�$�$�$�$�$s�=�
A�
Ac���d|�d|�d�}t}|���r*|���st|��rt}||f}t|d||||��dS)NzAttributeError: z has no attribute �.r)r�is_instance�is_compiledrprLr^)�name_context�lookup_valuerrrYrZs      r!�add_attribute_errorrwos����<H�L�L�$�$�$�O�G��C����!�!��,�*B�*B�*D�*D���l�+�+�	��C��D� �G���'��w��W�E�E�E�E�Er#c������d�����fd�}���fd�}�}|��t|tjtjf��s�t|tj��rQ|jdkr|||��rdS|tkr-|jdvr$||jd|jd	��rdS|j}|�&t|tjtjf����d
S)a
    Checks if a jedi object (e.g. `Statement`) sits inside a try/catch and
    doesn't count as an error (if equal to `exception`).
    Also checks `hasattr` for AttributeErrors and uses the `payload` to compare
    it.
    Returns True if the exception was catched.
    c���|���sdS|���D];}|���|jkr|j���rdS�<dS)NFT)�is_class�mro�
py__name__r.�parent_context�is_builtins_module)�clsr[�
python_clss   r!�check_matchz/_check_for_exception_catch.<locals>.check_match�sj���|�|�~�~�	��5�#�-�-�/�/�	�	�J��~�~���:�#6�6�6��*�=�=�?�?�7��t�t���ur#c���t|j��}|D]G}t|��t|��}|dkr!|j�jcxkr|jksndS�H|���D]�}|�dS�
�|��}|D]y}ddlm}t||j
��rL|jdkrA|���D]+}	|	�
��D]}
�|
|��rdS��,�i�||��rdS�z��dS)N�tryFTr)�iterable�tuple)�iter�children�nextr rc�get_except_clause_tests�
infer_node�jedi.inference.valuer��
isinstance�Sequence�
array_type�
py__iter__�infer)�objr[�iterator�branch_type�suiterX�except_classesrr��
lazy_valuerYr��	jedi_namerVs           ���r!�check_try_for_exceptz8_check_for_exception_catch.<locals>.check_try_for_except�s�������%�%��#�	�	�K���N�N�N���N�N�E��e�#�#�(�2�Y�5H�Y�Y�Y�Y�E�M�Y�Y�Y�Y��u�u���/�/�1�1�	(�	(�D��|��t�t�!-�!8�!8��!>�!>��)�(�(�C�=�=�=�=�=�=�!�#�x�'8�9�9�	(��N�g�5�5�*-�.�.�*:�*:�0�0�J�'1�'7�'7�'9�'9�0�0��#.�;�s�I�#>�#>�!0�+/�4�4�4�4�4�!0�0�0�
'�;�s�I�6�6�(�#'�4�4�4�(�(�	(�	(r#c� ��	|j�jcxkr|jksnJ�|jdvsJ�|jd}|jdkr|jdksJ�|jd}|jdksJ�|jd}|jdksJ�ddlm}|�
j�
|��}t|�	����}t|��d	ksJ�|d\}}	t|	�����}
t|
��dkrt|
d��sJ�|
d�
���djksJ�|d\}}	|	���}�d|vS#t$rYd
SwxYw)N)�power�	atom_exprrr�hasattrr�trailer�arglist)�
TreeArgumentsrF)r rcrer��value�jedi.inference.argumentsr�rS�list�unpack�lenr�r�get_safe_value�AssertionError)rXr��baser�r�r��args�
unpacked_args�keyr��names�objectsr�rVrZs            ���r!�
check_hasattrz1_check_for_exception_catch.<locals>.check_hasattr�s����	��?�i�&9�I�I�I�I�E�M�I�I�I�I�I�I��9� 6�6�6�6�6��=��#�D��9��&�&�4�:��+B�+B�+B�+B��m�A�&�G��<�9�,�,�,�,��&�q�)�G��<�9�,�,�,�,�>�>�>�>�>�>� �=��!=�|�W�U�U�D� ������/�/�M��}�%�%��*�*�*�*�,�A�.�O�C����)�)�+�+�,�,�E��u�:�:��?�?�y��q��':�':�?�?�?���8�*�*�,�,���
�0@�@�@�@�@�,�A�.�O�C�� �&�&�(�(�G��1�:��(�(���	�	�	��5�5�	���s�E;E?�?
F
�F
N�try_stmtT)�if_stmt�
while_stmtrrF)	r�r�Function�Class�Flowre�AttributeErrorr�rd)rVr�r[rZr�r�r�r�s`` `   @r!rOrO~s ���������(�(�(�(�(�(�(�8�������:�C�

�/�*�S�4�=�$�*�2M�"N�"N�/��c�4�9�%�%�	 ��x�:�%�%�*>�*>�s�I�*N�*N�%��t��N�*�*�s�x�;T�/T�/T� �=���a��#�,�q�/�B�B� ��4��j���/�*�S�4�=�$�*�2M�"N�"N�/��5r#r8)�__doc__�parso.pythonr�jedir�jedi.inference.helpersrr��	NameError�ImportError�	TypeError�
ValueErrorrrrLr^rprwrOrJr#r!�<module>r�s�����������������,�,�,�,�,�,��>�+F�G��i�!7�8���%=�>�&'��D�%9�%&�	�4�$8�$%�y�$�#7�#$�i��"6��	�4�0��9�d�+���D�1� "�I�t�4� �)�T�2�%'��D�$9�$&�
�D�#9�#%�z�4�"8�	�	��&(N�(N�(N�(N�(N�(N�(N�(N�V	�	�	�	�	�e�	�	�	�15�%������$�$�$�*F�F�F�W�W�W�W�W�Wr#

Youez - 2016 - github.com/yon3zu
LinuXploit