summaryrefslogtreecommitdiffstats
path: root/scripts/filter-active.py
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2024-05-01 18:24:07 +0200
committerBen Hutchings <ben@decadent.org.uk>2024-05-02 20:10:40 +0200
commit931766910f1162dc29a37e015d0fe9a483895f24 (patch)
tree6c6e1341fac1c8c2c5a137125b0ab018ee78838f /scripts/filter-active.py
parentb915a9ad12456b5d7f5790e92185660738872b2c (diff)
scripts: Fix flake8 warnings
In filter-active.py: - Delete unused imports. - Put each import on its own line. - Remove parentheses from an if-statement so the condition doesn't line up with the body. In issue.py: - Delete unused variable. - Fix whitespace.
Diffstat (limited to 'scripts/filter-active.py')
-rwxr-xr-xscripts/filter-active.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/filter-active.py b/scripts/filter-active.py
index 80eb03849..8f3a70634 100755
--- a/scripts/filter-active.py
+++ b/scripts/filter-active.py
@@ -1,7 +1,8 @@
#!/usr/bin/python3
-import os, re, sys, curses
+import curses
from optparse import OptionParser
+import sys
from kernel_sec import get_issues, parse_status
@@ -13,8 +14,8 @@ def filter_out_states(issues, inc_branches, exc_branches, states, notstates):
# Current state must be within 'states' (if specified), and
# must not be within 'notstates' (if specified).
m = parse_status(i.status(branch))
- if ((m['state'] in states if states else True) and
- (m['state'] not in notstates if notstates else True)):
+ if (m['state'] in states if states else True) and \
+ (m['state'] not in notstates if notstates else True):
filteredissues.append(i)
break

© 2014-2024 Faster IT GmbH | imprint | privacy policy