관리-도구
편집 파일: brain_re.cpython-311.pyc
� �܋f6 � � � d dl mZ d dlmZmZmZ d dlmZ d dlm Z m Z d dlmZm Z d dlmZ dd �Z e e� � d e� � dZdd�Zddd�Z e� � � ej ee� � e� � dS )� )�annotations)�context� inference_tip�nodes)�register_module_extender)�_extract_single_node�parse)� PY39_PLUS� PY311_PLUS)�AstroidManager�return�nodes.Modulec �@ � t rd} nd} t d| � d�� � S )Nz import re._compiler as _compilerzimport sre_compile as _compilerz a NOFLAG = 0 ASCII = _compiler.SRE_FLAG_ASCII IGNORECASE = _compiler.SRE_FLAG_IGNORECASE LOCALE = _compiler.SRE_FLAG_LOCALE UNICODE = _compiler.SRE_FLAG_UNICODE MULTILINE = _compiler.SRE_FLAG_MULTILINE DOTALL = _compiler.SRE_FLAG_DOTALL VERBOSE = _compiler.SRE_FLAG_VERBOSE TEMPLATE = _compiler.SRE_FLAG_TEMPLATE DEBUG = _compiler.SRE_FLAG_DEBUG A = ASCII I = IGNORECASE L = LOCALE U = UNICODE M = MULTILINE S = DOTALL X = VERBOSE T = TEMPLATE )r r )�import_compilers �g/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/astroid/brain/brain_re.py� _re_transformr sA � � � <�<���;��� �� � � �� � � �rez? @classmethod def __class_getitem__(cls, item): return cls �node� nodes.Call�boolc � � | � � � j dk o�t | j t j � � o�| j j dk o~t | j t j � � o_t | j j � � dk oBt | j j d t j � � o| j j d j dv S )z�Check for re.Pattern or re.Match call in stdlib. Match these patterns from stdlib/re.py ```py Pattern = type(...) Match = type(...) ``` r �type� r > �Match�Pattern)�root�name� isinstance�funcr �Name�parent�Assign�len�targets� AssignName)r s r �_looks_like_pattern_or_matchr'