aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2022-12-19 21:41:35 +0100
committerDaniel Schadt <kingdread@gmx.de>2022-12-19 21:41:35 +0100
commit0e0a7e4326a592a6b99ad590e3397e6ddaeaf93a (patch)
tree5a5afe7dda6631100f2f52fac0d1935f7627026d
parent11768581cbe71a1eaf197204b6362d07da4d6c49 (diff)
downloadfietsboek-0e0a7e4326a592a6b99ad590e3397e6ddaeaf93a.tar.gz
fietsboek-0e0a7e4326a592a6b99ad590e3397e6ddaeaf93a.tar.bz2
fietsboek-0e0a7e4326a592a6b99ad590e3397e6ddaeaf93a.zip
fix lint
-rw-r--r--fietsboek/scripts/fietsctl.py4
1 files 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)