관리-도구
편집 파일: bad_builtin.cpython-311.pyc
� �܋f� � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl m Z erddlmZ dd gZ d Zeed�Z G d� d e� � Zdd�ZdS )z Checker for deprecated builtins.� )�annotations)� TYPE_CHECKING)�nodes)�BaseChecker)�only_required_for_messages)�PyLinter�map�filterz*Using a list comprehension can be clearer.)r r c �X � e Zd ZdZddiZdedddd�ffZ ed � � dd�� � ZdS )�BadBuiltinChecker�deprecated_builtins�W0141)zUsed builtin function %s�bad-builtinz�Used when a disallowed builtin function is used (see the bad-function option). Usual disallowed functions are the ones like map, or filter , where Python offers now some cleaner alternative like list comprehension.z bad-functions�csvz<builtin function names>zMList of builtins function names that should not be used, separated by a comma)�default�type�metavar�helpr �node� nodes.Call�return�Nonec � � t |j t j � � r�|j j }||� d�� � v sw||� � � v sc|| j j j v rRt � |� � }|r|�d|� �nt |� � }| � d||�� � d S d S d S d S d S )NT)�futurez. r )r �args)� isinstance�funcr �Name�name�frame�root�linter�config� bad_functions� BUILTIN_HINTS�get�repr�add_message)�selfr r �hintr s �n/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pylint/extensions/bad_builtin.py� visit_callzBadBuiltinChecker.visit_call3 s� � ��d�i���,�,� J��9�>�D� �D�J�J�d�J�3�3�3�3�t�t�y�y�{�{�7J�7J��4�;�-�;�;�;�(�,�,�T�2�2�D�26�F�d�.�.��.�.�.�D��J�J�D��$�$�]��D�$�I�I�I�I�I� J� J� 4�3�7J�7J�;�;� N)r r r r ) �__name__� __module__�__qualname__r �msgs� BAD_FUNCTIONS�optionsr r, � r- r+ r r s� � � � � � � �D�� � �D� �(��5�-� � � ��G� �� �.�.� J� J� J� /�.� J� J� Jr- r r"