diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-08-18 12:10:39 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-18 12:10:39 (GMT) |
| commit | ebe7e6d86cf8f54d449d49866698d7f4c700cc7c (patch) | |
| tree | 50dc7e8d1f56f7ef8b34a3f9153d1345c56245cf /Python/pythonrun.c | |
| parent | e2320c6a34d44a0efa7ecc693c3a6215014b7b6e (diff) | |
| download | cpython-ebe7e6d86cf8f54d449d49866698d7f4c700cc7c.zip cpython-ebe7e6d86cf8f54d449d49866698d7f4c700cc7c.tar.gz cpython-ebe7e6d86cf8f54d449d49866698d7f4c700cc7c.tar.bz2 | |
bpo-44852: Support filtering over warnings without a set message (GH-27793) (GH-27810)
Additional improvements:
- messages which were compiled regular expressions aren't unpacked back into
strings for unmatched warnings;
- removed unnecessary "if tokens:" check (there's one before the for loop);
- took `endswith` calculation out of the for loop.
(cherry picked from commit 8cf07d3db3eed02b43350a5f9dbf68f1c839ea82)
Co-authored-by: Ćukasz Langa <lukasz@langa.pl>
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions
