summaryrefslogtreecommitdiffstats
path: root/Modules/_sre
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2022-04-06 16:53:50 (GMT)
committerGitHub <noreply@github.com>2022-04-06 16:53:50 (GMT)
commitb09184bf05b07b77c5ecfedd4daa846be3cbf0a9 (patch)
tree55859571882a7468d2d5ab33288b16ca1536776b /Modules/_sre
parentda922409ac3e65c6bf2911401c7dfdf8ee6e0036 (diff)
downloadcpython-b09184bf05b07b77c5ecfedd4daa846be3cbf0a9.zip
cpython-b09184bf05b07b77c5ecfedd4daa846be3cbf0a9.tar.gz
cpython-b09184bf05b07b77c5ecfedd4daa846be3cbf0a9.tar.bz2
bpo-47211: Remove function re.template() and flag re.TEMPLATE (GH-32300)
They were undocumented and never working.
Diffstat (limited to 'Modules/_sre')
-rw-r--r--Modules/_sre/sre.c1
-rw-r--r--Modules/_sre/sre_constants.h1
2 files changed, 0 insertions, 2 deletions
diff --git a/Modules/_sre/sre.c b/Modules/_sre/sre.c
index 491734f..bd9204d 100644
--- a/Modules/_sre/sre.c
+++ b/Modules/_sre/sre.c
@@ -1323,7 +1323,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 3e36431..e53fa39 100644
--- a/Modules/_sre/sre_constants.h
+++ b/Modules/_sre/sre_constants.h
@@ -86,7 +86,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