Viewing File: /opt/alt/python-internal/lib64/python3.11/re/__pycache__/_constants.cpython-311.pyc
!A?h* d Z dZddlmZmZ G d de Z G d de Z eed Zd Z e d
Z
e
dd= e d
ddddddddddd Z e dddddddd d!d"d#d$d%d&d'd(d)d* Ze
eeeiZe
eeeiZe
eeeiZeeeeiZeeee iZ!ee"ee#iZ$e%e%e&e&e'e'e(e(e)e*e+e,e-e-e.e.iZ/e%e0e&e1e'e2e(e3e)e4e+e5e-e6e.e7iZ8d+Z9d,Z:d-Z;d.Z<d/Z=d0Z>d1Z?d2Z@d3ZAd+ZBd,ZCd-ZDdS )4zInternal support module for sreiNJ4 ) MAXREPEAT MAXGROUPSc ( e Zd ZdZdZd fd Z xZS )errorai Exception raised for invalid regular expressions.
Attributes:
msg: The unformatted error message
pattern: The regular expression pattern
pos: The index in the pattern where compilation failed (may be None)
lineno: The line corresponding to pos (may be None)
colno: The column corresponding to pos (may be None)
reNc || _ || _ || _ |x|vd||fz }t |t rd}nd}| |d| dz | _ || |d| z
| _ ||v rd|| j | j fz }nd x| _ | _ t
| d S )Nz%s at position %d
r z%s (line %d, column %d))msgpatternpos
isinstancestrcountlinenorfindcolnosuper__init__)selfr r
r newline __class__s :/opt/alt/python-internal/lib64/python3.11/re/_constants.pyr zerror.__init__% s 3?%c
2C'3''
!--C881<DKw}}Wa===DJ'!!/3TZ2PP'++DK$*
)NN)__name__
__module____qualname____doc__r
__classcell__r s @r r r sN J r r c ( e Zd Z fdZd ZdZ xZS )_NamedIntConstantc h t t | | | }||_ |S N)r r# __new__name)clsvaluer' r r s r r&