관리-도구
편집 파일: brain_regex.cpython-311.pyc
� �܋f" � � � d dl mZ d dlmZmZmZ d dlmZ d dlm Z m Z d dlmZ d dl mZ 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)�AstroidManager�return�nodes.Modulec � � t d� � S )z�The RegexFlag enum exposes all its entries by updating globals(). We hard-code the flags for now. # pylint: disable-next=line-too-long See https://github.com/mrabarnett/mrab-regex/blob/2022.10.31/regex_3/regex.py#L200 aA A = ASCII = 0x80 # Assume ASCII locale. B = BESTMATCH = 0x1000 # Best fuzzy match. D = DEBUG = 0x200 # Print parsed pattern. E = ENHANCEMATCH = 0x8000 # Attempt to improve the fit after finding the first # fuzzy match. F = FULLCASE = 0x4000 # Unicode full case-folding. I = IGNORECASE = 0x2 # Ignore case. L = LOCALE = 0x4 # Assume current 8-bit locale. M = MULTILINE = 0x8 # Make anchors look for newline. P = POSIX = 0x10000 # POSIX-style matching (leftmost longest). R = REVERSE = 0x400 # Search backwards. S = DOTALL = 0x10 # Make dot match newline. U = UNICODE = 0x20 # Assume Unicode locale. V0 = VERSION0 = 0x2000 # Old legacy behaviour. DEFAULT_VERSION = V0 V1 = VERSION1 = 0x100 # New enhanced behaviour. W = WORD = 0x800 # Default Unicode word breaks. X = VERBOSE = 0x40 # Ignore whitespace and comments. T = TEMPLATE = 0x1 # Template (present because re module has it). )r � � �j/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/astroid/brain/brain_regex.py�_regex_transformr s � � � �� � r �regexz? @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 regex.Pattern or regex.Match call in stdlib. Match these patterns from stdlib/re.py ```py Pattern = type(...) Match = type(...) ``` zregex.regex�type� r > �Match�Pattern)�root�name� isinstance�funcr �Name�parent�Assign�len�targets� AssignName)r s r �_looks_like_pattern_or_matchr&