Skip to content

Commit

Permalink
fix nitpicking linters in generate_autoupdate.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Akira25 committed Sep 20, 2023
1 parent 5741d31 commit 2b58840
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions roles/buildbot/files/generate_autoupdate_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 2b58840

Please sign in to comment.