summaryrefslogtreecommitdiffstats
path: root/Modules/_sre
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2023-06-14 10:26:20 (GMT)
committerGitHub <noreply@github.com>2023-06-14 10:26:20 (GMT)
commit67f69dba0a2adc68c631bad5d970bdd22fc05d91 (patch)
tree7d4a62db48b6e699597f01119286e0d1a740e747 /Modules/_sre
parentfb655e0c4581ca4bed80db0a083884b29fe142d2 (diff)
downloadcpython-67f69dba0a2adc68c631bad5d970bdd22fc05d91.zip
cpython-67f69dba0a2adc68c631bad5d970bdd22fc05d91.tar.gz
cpython-67f69dba0a2adc68c631bad5d970bdd22fc05d91.tar.bz2
gh-105687: Remove deprecated objects from `re` module (#105688)
Diffstat (limited to 'Modules/_sre')
-rw-r--r--Modules/_sre/sre.c1
-rw-r--r--Modules/_sre/sre_constants.h3
2 files changed, 1 insertions, 3 deletions
diff --git a/Modules/_sre/sre.c b/Modules/_sre/sre.c
index e89e4c7..328e4be 100644
--- a/Modules/_sre/sre.c
+++ b/Modules/_sre/sre.c
@@ -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},
diff --git a/Modules/_sre/sre_constants.h b/Modules/_sre/sre_constants.h
index b569229..bd611b3 100644
--- a/Modules/_sre/sre_constants.h
+++ b/Modules/_sre/sre_constants.h
@@ -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