aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkgcheck/scripts/pkgcheck_scan.py')
-rw-r--r--src/pkgcheck/scripts/pkgcheck_scan.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/pkgcheck/scripts/pkgcheck_scan.py b/src/pkgcheck/scripts/pkgcheck_scan.py
index c04ff329..7c11f810 100644
--- a/src/pkgcheck/scripts/pkgcheck_scan.py
+++ b/src/pkgcheck/scripts/pkgcheck_scan.py
@@ -371,9 +371,10 @@ def _setup_scan(parser, namespace, args):
# have to be parsed twice, will probably require a custom snakeoil
# arghparse method.
# parse command line args to override config defaults
- with patch(
- "pkgcheck.scripts.argparse_actions.ChecksetArgs.__call__", lambda *a, **k: None
- ), patch("pkgcheck.scripts.argparse_actions.ExitArgs.__call__", lambda *a, **k: None):
+ with (
+ patch("pkgcheck.scripts.argparse_actions.ChecksetArgs.__call__", lambda *a, **k: None),
+ patch("pkgcheck.scripts.argparse_actions.ExitArgs.__call__", lambda *a, **k: None),
+ ):
namespace, _ = parser._parse_known_args(args, namespace)
# Get the current working directory for repo detection and restriction