Hacked By AnonymousFox
�
�Q�f � �V � d Z ddlmZ ddlmZ ddlmZ G d� dej � Zy)z-Fixer that turns 1L into 1, 0755 into 0o755.
� )�token)�
fixer_base)�Numberc �0 � e Zd Zej Zd� Zd� Zy)�FixNumliteralsc �^ � |j j d� xs |j d dv S )N�0����Ll)�value�
startswith)�self�nodes �D/opt/alt/python312/lib64/python3.12/lib2to3/fixes/fix_numliterals.py�matchzFixNumliterals.match s) � ��
�
�%�%�c�*�D�d�j�j��n��.D�E� c �� � |j }|d dv r|d d }n@|j d� r/|j � rt t |� � dkD rd|dd z }t ||j �� S )Nr
r r � �0o)�prefix)r r
�isdigit�len�setr r )r r �results�vals r � transformzFixNumliterals.transform sd � ��j�j���r�7�d�?��c�r�(�C�
�^�^�C�
�S�[�[�]�s�3�s�8�}�q�7H���Q�R��.�C��c�$�+�+�.�.r N)�__name__�
__module__�__qualname__r �NUMBER�_accept_typer r � r r r r s � � �<�<�L�F�/r r N) �__doc__�pgen2r � r �
fixer_utilr �BaseFixr r"