관리-도구
편집 파일: fixer_util.cpython-311.pyc
� �܋fVD � �l � d Z ddlmZmZmZmZmZmZ ddlm Z m Z ddlmZ mZ ddlmZ ddlm Z mZmZm Z mZmZ ddlZd� Zdd �Zdd �Zdd�Zd� Zd � Zd� Zd� Zd d�Ze j e j e j e j e j! fZ"e j# e j$ fZ%d� Z&dd�Z'd� Z(d� Z)d� Z*d� Z+d� Z,d� Z-d� Z.dZ/dZ0d� Z1d� Z2dd�Z3dS )!z� Utility functions from 2to3, 3to2 and python-modernize (and some home-grown ones). Licences: 2to3: PSF License v2 3to2: Apache Software License (from 3to2/setup.py) python-modernize licence: BSD (from python-modernize/LICENSE) � )� FromImport�Newline� is_import� find_root�does_tree_import�Comma)�Leaf�Node)�python_symbols�python_grammar)�token)r �Call�Name�symsr �NumberNc �B � � d� v r� S � � d� � r � dd� � � fd�|D � � }t |� � dk r/t dd� d � |D � � � � z � � �t |� � d k rt d� � �|d S )al Examples: >>> canonical_fix_name('fix_wrap_text_literals') 'libfuturize.fixes.fix_wrap_text_literals' >>> canonical_fix_name('wrap_text_literals') 'libfuturize.fixes.fix_wrap_text_literals' >>> canonical_fix_name('wrap_te') ValueError("unknown fixer name") >>> canonical_fix_name('wrap') ValueError("ambiguous fixer name") z.fix_�fix_� Nc �d �� g | ],}|� d � �� � � � �*|��-S )zfix_{0})�endswith�format)�.0�f�fixs ��g/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/libfuturize/fixer_util.py� <listcomp>z&canonical_fix_name.<locals>.<listcomp>( sG �� � 7� 7� 7�q��J�J�y�/�/��4�4�5�5�7�� 7� 7� 7� � zOAmbiguous fixer name. Choose a fully qualified module name instead from these: � c 3 � K � | ] }d |z V � � dS )z N� )r �myfs r � <genexpr>z%canonical_fix_name.<locals>.<genexpr>- s&