From 2b5884069d9eaa5c283c437b5084cdf70680dbd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20H=C3=BCbner?= Date: Wed, 20 Sep 2023 13:34:44 +0200 Subject: [PATCH] fix nitpicking linters in generate_autoupdate.py --- roles/buildbot/files/generate_autoupdate_json.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/roles/buildbot/files/generate_autoupdate_json.py b/roles/buildbot/files/generate_autoupdate_json.py index c9f5578..df0c193 100644 --- a/roles/buildbot/files/generate_autoupdate_json.py +++ b/roles/buildbot/files/generate_autoupdate_json.py @@ -6,6 +6,9 @@ import json import os +# We don't care for "too long" lines. We don't use punchcards anymore! +# flake8: noqa + parser = argparse.ArgumentParser() parser.add_argument( "-v", @@ -52,7 +55,7 @@ # get target and create dict, if not already created target = "/".join(fpath.split("/")[-3:-1]) - if autoupdate_json.get("target").get(target) == None: + if autoupdate_json.get("target").get(target) is None: autoupdate_json["target"][target] = {} # get hashsums @@ -65,7 +68,7 @@ break # add information to autoupdate.json - if autoupdate_json.get("target").get(target).get(model) == None: + if autoupdate_json.get("target").get(target).get(model) is None: autoupdate_json["target"][target][model] = {} if sha256 is not None: