mirror of https://github.com/python/cpython
Browse Source
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 8cf07d3db3)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
pull/27815/head
committed by
GitHub
1 changed files with 5 additions and 4 deletions
Loading…
Reference in new issue