comparison mercurial/utils/stringutil.py @ 44022: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
comparison
equal deleted inserted replaced
44021:6d3b67a837a6 44022:c1ccefb513e4
591 proper.name if proper.name else commit.name, 591 proper.name if proper.name else commit.name,
592 proper.email if proper.email else commit.email, 592 proper.email if proper.email else commit.email,
593 ) 593 )
594 594
595 595
596 _correctauthorformat = remod.compile(br'^[^<]+\s\<[^<>]+@[^<>]+\>$') 596 _correctauthorformat = remod.compile(br'^[^<]+\s<[^<>]+@[^<>]+>$')
597 597
598 598
599 def isauthorwellformed(author): 599 def isauthorwellformed(author):
600 '''Return True if the author field is well formed 600 '''Return True if the author field is well formed
601 (ie "Contributor Name <contrib@email.dom>") 601 (ie "Contributor Name <contrib@email.dom>")