From 0e0a7e4326a592a6b99ad590e3397e6ddaeaf93a Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Mon, 19 Dec 2022 21:41:35 +0100 Subject: fix lint --- fietsboek/scripts/fietsctl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fietsboek/scripts/fietsctl.py b/fietsboek/scripts/fietsctl.py index efe22c2..75c615a 100644 --- a/fietsboek/scripts/fietsctl.py +++ b/fietsboek/scripts/fietsctl.py @@ -138,7 +138,7 @@ def cmd_passwd(env, args): def cmd_version(): """Show the installed fietsboek version.""" - name = __name__.split(".")[0] + name = __name__.split(".", 1)[0] print(f"{name} {__VERSION__}") @@ -255,7 +255,7 @@ def main(argv=None): argv = sys.argv args, parser = parse_args(argv) - if args.func == cmd_version: + if args.func == cmd_version: # pylint: disable=comparison-with-callable cmd_version() sys.exit(EXIT_OKAY) -- cgit v1.2.3