
    hi                          d dl Z  G d d      Zy)    Nc                   4    e Zd ZdZddZed        Zd Zd Zy)LazyRegexCompilerz-Descriptor to allow lazy compilation of regexc                 .    || _         || _        d | _        y N)_pattern_flags_compiled_regex)selfpatternflagss      T/var/www/html/eduruby.in/venv/lib/python3.12/site-packages/mongoengine/base/utils.py__init__zLazyRegexCompiler.__init__   s    #    c                     | j                   /t        j                  | j                  | j                        | _         | j                   S r   )r	   recompiler   r   )r
   s    r   compiled_regexz LazyRegexCompiler.compiled_regex   s5    '#%::dmmT[[#ID ###r   c                     | j                   S r   )r   )r
   instanceowners      r   __get__zLazyRegexCompiler.__get__   s    """r   c                     t        d      )Nz'Can not set attribute LazyRegexCompiler)AttributeError)r
   r   values      r   __set__zLazyRegexCompiler.__set__   s    FGGr   N)r   )	__name__
__module____qualname____doc__r   propertyr   r   r    r   r   r   r      s)    7$
 $ $
#Hr   r   )r   r   r!   r   r   <module>r"      s    	H Hr   