aboutsummaryrefslogtreecommitdiff
path: root/b4/mbox.py
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2022-06-15 13:26:54 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2022-06-15 13:26:54 -0400
commit6e1452d7e5008a1712aac0fb95bc4e377f95821b (patch)
tree767075d83fbb81041d727961a6c8052594a17120 /b4/mbox.py
parentd79b9cd87057d44e5afd384be4de7e267fd466b6 (diff)
downloadb4-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.py6
1 files changed, 3 insertions, 3 deletions
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: