diff options
author | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-03-25 10:46:04 +0300 |
---|---|---|
committer | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-03-25 10:46:04 +0300 |
commit | 4a07b03673d315e0d98c5e29cc9cbeeec1d5c94f (patch) | |
tree | 7cdc507d170dc6f879b1fde1093012f5be58fece /contrib/tools/python3/src/Lib/sre_parse.py | |
parent | 86f93d737e9db0e8bfdb6d6a291b6dbdab9d1bdb (diff) | |
download | ydb-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.py | 4 |
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 ) |