From 6e1452d7e5008a1712aac0fb95bc4e377f95821b Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Wed, 15 Jun 2022 13:26:54 -0400 Subject: Cosmetic cleanups to make PyCharm happier Minor nitpicking by PyCharm, but not completely unreasonable. Signed-off-by: Konstantin Ryabitsev --- b4/mbox.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'b4/mbox.py') diff --git a/b4/mbox.py b/b4/mbox.py index 05d46b5..c2e6319 100644 --- a/b4/mbox.py +++ b/b4/mbox.py @@ -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: -- cgit v1.2.3