aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/python3/src/Lib/sre_parse.py
diff options
context:
space:
mode:
authorarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-03-25 10:46:04 +0300
committerarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-03-25 10:46:04 +0300
commit4a07b03673d315e0d98c5e29cc9cbeeec1d5c94f (patch)
tree7cdc507d170dc6f879b1fde1093012f5be58fece /contrib/tools/python3/src/Lib/sre_parse.py
parent86f93d737e9db0e8bfdb6d6a291b6dbdab9d1bdb (diff)
downloadydb-4a07b03673d315e0d98c5e29cc9cbeeec1d5c94f.tar.gz
intermediate changes
ref:ac52b2b4969cd1562fcebef15e16af428f77648b
Diffstat (limited to 'contrib/tools/python3/src/Lib/sre_parse.py')
-rw-r--r--contrib/tools/python3/src/Lib/sre_parse.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/tools/python3/src/Lib/sre_parse.py b/contrib/tools/python3/src/Lib/sre_parse.py
index 83119168e6..53706676e9 100644
--- a/contrib/tools/python3/src/Lib/sre_parse.py
+++ b/contrib/tools/python3/src/Lib/sre_parse.py
@@ -807,9 +807,11 @@ def _parse(source, state, verbose, nested, first=False):
if not first or subpattern:
import warnings
warnings.warn(
- 'Flags not at the start of the expression %r%s' % (
+ 'Flags not at the start of the expression %r%s'
+ ' but at position %d' % (
source.string[:20], # truncate long regexes
' (truncated)' if len(source.string) > 20 else '',
+ start,
),
DeprecationWarning, stacklevel=nested + 6
)