mirror of
https://github.com/python/cpython.git
synced 2025-10-28 09:10:36 +00:00
gh-105687: Remove deprecated objects from re module (#105688)
This commit is contained in:
parent
fb655e0c45
commit
67f69dba0a
9 changed files with 13 additions and 56 deletions
|
|
@ -1335,7 +1335,6 @@ pattern_repr(PatternObject *obj)
|
|||
const char *name;
|
||||
int value;
|
||||
} flag_names[] = {
|
||||
{"re.TEMPLATE", SRE_FLAG_TEMPLATE},
|
||||
{"re.IGNORECASE", SRE_FLAG_IGNORECASE},
|
||||
{"re.LOCALE", SRE_FLAG_LOCALE},
|
||||
{"re.MULTILINE", SRE_FLAG_MULTILINE},
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
* See the sre.c file for information on usage and redistribution.
|
||||
*/
|
||||
|
||||
#define SRE_MAGIC 20221023
|
||||
#define SRE_MAGIC 20230612
|
||||
#define SRE_OP_FAILURE 0
|
||||
#define SRE_OP_SUCCESS 1
|
||||
#define SRE_OP_ANY 2
|
||||
|
|
@ -85,7 +85,6 @@
|
|||
#define SRE_CATEGORY_UNI_NOT_WORD 15
|
||||
#define SRE_CATEGORY_UNI_LINEBREAK 16
|
||||
#define SRE_CATEGORY_UNI_NOT_LINEBREAK 17
|
||||
#define SRE_FLAG_TEMPLATE 1
|
||||
#define SRE_FLAG_IGNORECASE 2
|
||||
#define SRE_FLAG_LOCALE 4
|
||||
#define SRE_FLAG_MULTILINE 8
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue