Mercurial > public > mercurial-scm > hg-stable
diff mercurial/utils/stringutil.py @ 44024:c1ccefb513e4
cleanup: drop redundant character escapes outside of `[]`
Flagged by PyCharm. `@`, `:`, `<`, `>`, and `{` aren't special characters.
(I'm a bit surprised that it doesn't also want to unescape `}` in schemes.py.)
Differential Revision: https://phab.mercurial-scm.org/D7767
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 28 Dec 2019 01:51:17 -0500 |
parents | 9f70512ae2cf |
children | d502caab76bc |
line wrap: on
line diff
--- a/mercurial/utils/stringutil.py Sat Dec 28 01:35:05 2019 -0500 +++ b/mercurial/utils/stringutil.py Sat Dec 28 01:51:17 2019 -0500 @@ -593,7 +593,7 @@ ) -_correctauthorformat = remod.compile(br'^[^<]+\s\<[^<>]+@[^<>]+\>$') +_correctauthorformat = remod.compile(br'^[^<]+\s<[^<>]+@[^<>]+>$') def isauthorwellformed(author):