U e5d@sDdZdZddlmZmZGdddeZGdddeZeedZd d Z e d Z e d d =e dZ e dZ e 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.e7iZ8dZ9dZ:dZ;dZdZ?dZ@dZAdZBdZCdZDeEdkr@ddZFeGddZHeHIdeHIdeeFeHe d eFeHe d!eFeHe d!eHId"e9eHId#e:eHId$e;eHId%e<eHId&e=eHId'e>eHId(e?eHId)e@eHId*eAeHId+eBeHId,eCeHId-eDW5QRXeJd.d S)/zInternal support module for srei3) MAXREPEAT MAXGROUPScs&eZdZdZdZdfdd ZZS)erroraiException 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) reNcs||_||_||_|dk r|dk rd||f}t|tr>d}nd}||d|d|_|||d||_||krd||j|jf}n d|_|_t |dS)Nz%s at position %d  rz%s (line %d, column %d)) msgpatternpos isinstancestrcountlinenorfindcolnosuper__init__)selfr r r newline __class__%/usr/lib64/python3.8/sre_constants.pyr%s   zerror.__init__)NN)__name__ __module__ __qualname____doc__r __classcell__rrrrrs rcs$eZdZfddZddZZS)_NamedIntConstantcstt|||}||_|SN)rr__new__name)clsvaluer"rrrrr!9sz_NamedIntConstant.__new__cCs|jSr r")rrrr__repr__>sz_NamedIntConstant.__repr__)rrrr!r&rrrrrr8s rrcCs8|}ddt|D}tdd|D|S)NcSsg|]\}}t||qSr)r).0ir"rrr Esz_makecodes..cSsi|] }|j|qSrr%)r'itemrrr Fsz_makecodes..)stripsplit enumerateglobalsupdate)namesitemsrrr _makecodesCs r3az FAILURE SUCCESS ANY ANY_ALL ASSERT ASSERT_NOT AT BRANCH CALL CATEGORY CHARSET BIGCHARSET GROUPREF GROUPREF_EXISTS IN INFO JUMP LITERAL MARK MAX_UNTIL MIN_UNTIL NOT_LITERAL NEGATE RANGE REPEAT REPEAT_ONE SUBPATTERN MIN_REPEAT_ONE GROUPREF_IGNORE IN_IGNORE LITERAL_IGNORE NOT_LITERAL_IGNORE GROUPREF_LOC_IGNORE IN_LOC_IGNORE LITERAL_LOC_IGNORE NOT_LITERAL_LOC_IGNORE GROUPREF_UNI_IGNORE IN_UNI_IGNORE LITERAL_UNI_IGNORE NOT_LITERAL_UNI_IGNORE RANGE_UNI_IGNORE MIN_REPEAT MAX_REPEAT Nz AT_BEGINNING AT_BEGINNING_LINE AT_BEGINNING_STRING AT_BOUNDARY AT_NON_BOUNDARY AT_END AT_END_LINE AT_END_STRING AT_LOC_BOUNDARY AT_LOC_NON_BOUNDARY AT_UNI_BOUNDARY AT_UNI_NON_BOUNDARY a CATEGORY_DIGIT CATEGORY_NOT_DIGIT CATEGORY_SPACE CATEGORY_NOT_SPACE CATEGORY_WORD CATEGORY_NOT_WORD CATEGORY_LINEBREAK CATEGORY_NOT_LINEBREAK CATEGORY_LOC_WORD CATEGORY_LOC_NOT_WORD CATEGORY_UNI_DIGIT CATEGORY_UNI_NOT_DIGIT CATEGORY_UNI_SPACE CATEGORY_UNI_NOT_SPACE CATEGORY_UNI_WORD CATEGORY_UNI_NOT_WORD CATEGORY_UNI_LINEBREAK CATEGORY_UNI_NOT_LINEBREAK r @__main__cCs*t|}|D]}|d|||fq dS)Nz#define %s_%s %d )sortedwrite)fdprefixr2r*rrrdumpsrCzsre_constants.hwao/* * Secret Labs' Regular Expression Engine * * regular expression matching engine * * NOTE: This file is generated by sre_constants.py. If you need * to change anything in here, edit sre_constants.py and run it. * * Copyright (c) 1997-2001 by Secret Labs AB. All rights reserved. * * See the _sre.c file for information on usage and redistribution. */ z#define SRE_MAGIC %d ZSRE_OPZSREz#define SRE_FLAG_TEMPLATE %d z#define SRE_FLAG_IGNORECASE %d z#define SRE_FLAG_LOCALE %d z#define SRE_FLAG_MULTILINE %d z#define SRE_FLAG_DOTALL %d z#define SRE_FLAG_UNICODE %d z#define SRE_FLAG_VERBOSE %d z#define SRE_FLAG_DEBUG %d z#define SRE_FLAG_ASCII %d z#define SRE_INFO_PREFIX %d z#define SRE_INFO_LITERAL %d z#define SRE_INFO_CHARSET %d Zdone)KrMAGIC_srerr Exceptionrintrr3OPCODESATCODESCHCODESLITERALLITERAL_IGNORE NOT_LITERALNOT_LITERAL_IGNORE OP_IGNORELITERAL_LOC_IGNORENOT_LITERAL_LOC_IGNOREOP_LOCALE_IGNORELITERAL_UNI_IGNORENOT_LITERAL_UNI_IGNOREOP_UNICODE_IGNORE AT_BEGINNINGZAT_BEGINNING_LINEAT_ENDZ AT_END_LINE AT_MULTILINEZ AT_BOUNDARYZAT_LOC_BOUNDARYZAT_NON_BOUNDARYZAT_LOC_NON_BOUNDARY AT_LOCALEZAT_UNI_BOUNDARYZAT_UNI_NON_BOUNDARY AT_UNICODEZCATEGORY_DIGITZCATEGORY_NOT_DIGITZCATEGORY_SPACEZCATEGORY_NOT_SPACEZ CATEGORY_WORDZCATEGORY_LOC_WORDZCATEGORY_NOT_WORDZCATEGORY_LOC_NOT_WORDZCATEGORY_LINEBREAKZCATEGORY_NOT_LINEBREAK CH_LOCALEZCATEGORY_UNI_DIGITZCATEGORY_UNI_NOT_DIGITZCATEGORY_UNI_SPACEZCATEGORY_UNI_NOT_SPACEZCATEGORY_UNI_WORDZCATEGORY_UNI_NOT_WORDZCATEGORY_UNI_LINEBREAKZCATEGORY_UNI_NOT_LINEBREAK CH_UNICODESRE_FLAG_TEMPLATESRE_FLAG_IGNORECASESRE_FLAG_LOCALESRE_FLAG_MULTILINESRE_FLAG_DOTALLSRE_FLAG_UNICODESRE_FLAG_VERBOSESRE_FLAG_DEBUGSRE_FLAG_ASCIISRE_INFO_PREFIXSRE_INFO_LITERALSRE_INFO_CHARSETrrCopenr@r?printrrrr s! ,