Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/astroid/brain/__pycache__/brain_regex.cpython-39.pyc
Ðазад
a k�hi � @ s� d dl mZ d dlmZmZmZ d dlmZ d dlm Z m Z d dlmZ dd�dd �Z d Zddd �dd�Zdddd�dd�Zddd�dd�ZdS )� )�annotations)�context� inference_tip�nodes)�register_module_extender)�_extract_single_node�parse)�AstroidManagerznodes.Module)�returnc C s 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 � r r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/astroid/brain/brain_regex.py�_regex_transform s �r z? @classmethod def __class_getitem__(cls, item): return cls z nodes.Call�bool)�noder c C sl | � � jdkojt| jtj�oj| jjdkojt| jtj�ojt| jj �dkojt| jj d tj �oj| jj d jdv 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 > �Pattern�Match)�root�name� isinstance�funcr �Name�parent�Assign�len�targetsZ AssignName)r r r r �_looks_like_pattern_or_match4 s � �����r Nzcontext.InferenceContext | None)r �ctxc C sH t j| jjd j| j| j| j| j| jd�}t t �}|g|jd<