aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/re/_parser.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2022-04-06 19:53:50 +0300
committerGitHub <noreply@github.com>2022-04-06 19:53:50 +0300
commitb09184bf05b07b77c5ecfedd4daa846be3cbf0a9 (patch)
tree55859571882a7468d2d5ab33288b16ca1536776b /Lib/re/_parser.py
parentda922409ac3e65c6bf2911401c7dfdf8ee6e0036 (diff)
downloadcpython-b09184bf05b07b77c5ecfedd4daa846be3cbf0a9.tar.gz
cpython-b09184bf05b07b77c5ecfedd4daa846be3cbf0a9.zip
bpo-47211: Remove function re.template() and flag re.TEMPLATE (GH-32300)
They were undocumented and never working.
Diffstat (limited to 'Lib/re/_parser.py')
-rw-r--r--Lib/re/_parser.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/re/_parser.py b/Lib/re/_parser.py
index ae44118564e..eca2ffc28b4 100644
--- a/Lib/re/_parser.py
+++ b/Lib/re/_parser.py
@@ -61,12 +61,11 @@ FLAGS = {
"x": SRE_FLAG_VERBOSE,
# extensions
"a": SRE_FLAG_ASCII,
- "t": SRE_FLAG_TEMPLATE,
"u": SRE_FLAG_UNICODE,
}
TYPE_FLAGS = SRE_FLAG_ASCII | SRE_FLAG_LOCALE | SRE_FLAG_UNICODE
-GLOBAL_FLAGS = SRE_FLAG_DEBUG | SRE_FLAG_TEMPLATE
+GLOBAL_FLAGS = SRE_FLAG_DEBUG
class Verbose(Exception):
pass