diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2022-06-15 13:26:54 -0400 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2022-06-15 13:26:54 -0400 |
commit | 6e1452d7e5008a1712aac0fb95bc4e377f95821b (patch) | |
tree | 767075d83fbb81041d727961a6c8052594a17120 /b4/mbox.py | |
parent | d79b9cd87057d44e5afd384be4de7e267fd466b6 (diff) | |
download | b4-6e1452d7e5008a1712aac0fb95bc4e377f95821b.tar.gz |
Cosmetic cleanups to make PyCharm happier
Minor nitpicking by PyCharm, but not completely unreasonable.
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Diffstat (limited to 'b4/mbox.py')
-rw-r--r-- | b4/mbox.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -231,12 +231,12 @@ def make_am(msgs, cmdargs, msgid): logger.critical(' Link: %s', linkurl) base_commit = None - matches = re.search(r'base-commit: .*?([0-9a-f]+)', first_body, re.MULTILINE) + matches = re.search(r'base-commit: .*?([\da-f]+)', first_body, re.MULTILINE) if matches: base_commit = matches.groups()[0] else: # Try a more relaxed search - matches = re.search(r'based on .*?([0-9a-f]{40})', first_body, re.MULTILINE) + matches = re.search(r'based on .*?([\da-f]{40})', first_body, re.MULTILINE) if matches: base_commit = matches.groups()[0] @@ -492,7 +492,7 @@ def get_extra_series(msgs: list, direction: int = 1, wantvers: Optional[int] = N seen_msgids.add(msgid) lsub = b4.LoreSubject(msg['Subject']) if direction > 0 and lsub.reply: - # Does it have an "Obsoleted-by: trailer? + # Does it have an Obsoleted-by: trailer? rmsg = b4.LoreMessage(msg) trailers, mismatches = rmsg.get_trailers() for tl in trailers: |