py: Various flake8 cleanups

None of these are particularly significant, but they do get the CI
output clean.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall
2020-11-17 15:32:10 +00:00
parent e187d836ad
commit d270b6c3db
20 changed files with 129 additions and 108 deletions

View File

@@ -53,7 +53,7 @@ def main():
for line in log_lines:
for keyword in BANNED_KEYWORDS:
if re.search("(^|\W+){}(\W+|$)".format(keyword), line):
if re.search(r"(^|\W+){}(\W+|$)".format(keyword), line):
banned_words_seen.add(keyword)
seen_in_log = True
@@ -72,7 +72,7 @@ def main():
continue
for keyword in BANNED_KEYWORDS:
if re.search("(^|\W+){}(\W+|$)".format(keyword), line):
if re.search(r"(^|\W+){}(\W+|$)".format(keyword), line):
banned_words_seen.add(keyword)
seen_in_diff = True