summaryrefslogtreecommitdiffstats
path: root/Lib/re/_constants.py
diff options
context:
space:
mode:
authorMiro HronĨok <miro@hroncok.cz>2022-05-25 06:05:35 (GMT)
committerGitHub <noreply@github.com>2022-05-25 06:05:35 (GMT)
commit16a7e4a0b75080275bf12cfb71d54b01d85099b2 (patch)
tree6edf536e6e3c99af34a8a8d64d06e17c0cf22641 /Lib/re/_constants.py
parent08e4e887f2d4650972272b2f4441485f3e1e9aab (diff)
downloadcpython-16a7e4a0b75080275bf12cfb71d54b01d85099b2.zip
cpython-16a7e4a0b75080275bf12cfb71d54b01d85099b2.tar.gz
cpython-16a7e4a0b75080275bf12cfb71d54b01d85099b2.tar.bz2
gh-92728: Restore re.template, but deprecate it (GH-93161)
Revert "bpo-47211: Remove function re.template() and flag re.TEMPLATE (GH-32300)" This reverts commit b09184bf05b07b77c5ecfedd4daa846be3cbf0a9.
Diffstat (limited to 'Lib/re/_constants.py')
-rw-r--r--Lib/re/_constants.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/re/_constants.py b/Lib/re/_constants.py
index 71204d9..1cc85c6 100644
--- a/Lib/re/_constants.py
+++ b/Lib/re/_constants.py
@@ -204,6 +204,7 @@ CH_UNICODE = {
}
# flags
+SRE_FLAG_TEMPLATE = 1 # template mode (unknown purpose, deprecated)
SRE_FLAG_IGNORECASE = 2 # case insensitive
SRE_FLAG_LOCALE = 4 # honour system locale
SRE_FLAG_MULTILINE = 8 # treat target as multiline string