관리-도구
편집 파일: fix_numliterals.cpython-311.opt-1.pyc
� c��f � �T � d Z ddlmZ ddlmZ ddlmZ G d� dej � � ZdS )z-Fixer that turns 1L into 1, 0755 into 0o755. � )�token)� fixer_base)�Numberc �( � e Zd Zej Zd� Zd� ZdS )�FixNumliteralsc �T � |j � d� � p|j d dv S )N�0����Ll)�value� startswith)�self�nodes �D/opt/alt/python311/lib64/python3.11/lib2to3/fixes/fix_numliterals.py�matchzFixNumliterals.match s( � �� �%�%�c�*�*�D�d�j��n��.D�E� c � � |j }|d dv r|d d� }nV|� d� � rA|� � � r-t t |� � � � dk r d|dd � z }t ||j �� � S )Nr r r � �0o)�prefix)r r �isdigit�len�setr r )r r �results�vals r � transformzFixNumliterals.transform s� � ��j���r�7�d�?�?��c�r�c�(�C�C� �^�^�C� � � !�S�[�[�]�]� !�s�3�s�8�8�}�}�q�7H�7H���Q�R�R��.�C��c�$�+�.�.�.�.r N)�__name__� __module__�__qualname__r �NUMBER�_accept_typer r � r r r r s>