File: //usr/lib/python3/dist-packages/mercurial/__pycache__/match.cpython-310.pyc
o
�]LbA� � @ sl d dl mZmZ d dlZd dlZd dlZd dlZd dlZddlm Z ddl
mZ ddlm
Z
mZmZmZm
Z
mZ ddlmZ e�d�Zd Zd
ZejZdd� Zd\dd�Zdd� Zdd� Z
d\dd�Z
d]dd�Zd^dd�Zd^dd�Z d^dd�Z!dd � Z"d_d!d"�Z#G d#d$� d$e$�Z%G d%d&� d&e%�Z&G d'd(� d(e%�Z'G d)d*� d*e%�Z(d+d,� Z)G d-d.� d.e%�Z*G d/d0� d0e$�Z+G d1d2� d2e%�Z,G d3d4� d4e%�Z-G d5d6� d6e%�Z.d7d8� Z/G d9d:� d:e%�Z0G d;d<� d<e%�Z1G d=d>� d>e%�Z2G d?d@� d@e%�Z3d^dAdB�Z4dCdD� Z5dEdF� Z6dGdH� Z7dIdJ� Z8dKZ9dLdM� Z:dNdO� Z;dPdQ� Z<dRdS� Z=dTdU� Z>dVdW� Z?dXdY� Z@daAd`dZd[�ZBdS )a� )�absolute_import�print_functionN� )�_)�open)�encoding�error�pathutil�policy�pycompat�util)�
stringutil�dirstate)
� re� glob� path� relglob� relpath� relre� rootglob� listfile� listfile0� set� include�
subinclude� rootfilesin�r r c C s. t j�| �}z|jW S ty |j Y S w )zZcompile the regexp with the best available regexp engine and return a
matcher function)r �re�compile�
test_match�AttributeError�match)�regex�m� r$ �1/usr/lib/python3/dist-packages/mercurial/match.py�
_rematcher2 s
�r&