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 :  /usr/lib/python3/dist-packages/pythran/transformations/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/pythran/transformations/__pycache__/remove_fstrings.cpython-311.pyc
�

cR�aB��R�dZddlZddlmZddlmZGd�deej��ZdS)z-Turns f-strings to format syntax with modulus�N)�Transformation)�PythranSyntaxErrorc��eZdZdZd�ZdS)�RemoveFStringsajTurns f-strings to format syntax with modulus

    >>> import gast as ast
    >>> from pythran import passmanager, backend
    >>> node = ast.parse("f'a = {1+1:4d}; b = {b:s};'")
    >>> pm = passmanager.PassManager("test")
    >>> _, node = pm.apply(RemoveFStrings, node)
    >>> print(pm.dump(backend.Python, node))
    ('a = %4d; b = %s;' % ((1 + 1), b))
    c	��t|j��dkr2t|jdtj��s
|jdStd�|jD����s|Sd}g}|jD]�}t|tj��r||j�dd��z
}�;t|tj��rQ|dz
}|j	�td|���||j	jdjz
}|�|j����t�tj
tj|d���tj��tj|tj���	���
��S)N�rc3�JK�|]}t|tj��V��dS)N)�
isinstance�ast�FormattedValue)�.0�values  �I/usr/lib/python3/dist-packages/pythran/transformations/remove_fstrings.py�	<genexpr>z1RemoveFStrings.visit_JoinedStr.<locals>.<genexpr>s@����
�
�6;�J�u�c�0�1�1�
�
�
�
�
�
���%z%%z0f-strings without format specifier not supported)r�kind)�elts�ctx)�left�op�right)�len�valuesr
rr�any�Constantr�replace�format_specr�append�NotImplementedError�BinOp�Mod�Tuple�Load)�self�node�base_str�elementsrs     r�visit_JoinedStrzRemoveFStrings.visit_JoinedStrs����t�{���q� � ���K��N�C�.�*
�*
� ��;�q�>�!��
�
�?C�{�
�
�
�
�
�	��K������[�	*�	*�E��%���.�.�
*��E�K�/�/��T�:�:�:����E�3�#5�6�6�	
*��C����$�,�,�J�E�����E�-�4�Q�7�=�=�������,�,�,�,�)�)��y���H�4�8�8�8��w�y�y��)��s�x�z�z�:�:�:�
�
�
�	
rN)�__name__�
__module__�__qualname__�__doc__r*�rrrr	s-������	�	�!
�!
�!
�!
�!
rr)	r.�gastr�pythran.passmanagerr�pythran.syntaxr�NodeTransformerrr/rr�<module>r4st��3�3�����.�.�.�.�.�.�-�-�-�-�-�-�-
�-
�-
�-
�-
�^�S�%8�-
�-
�-
�-
�-
r

Youez - 2016 - github.com/yon3zu
LinuXploit