From 4128f20c6e0cade5ae95123a599af3c63ad01802 Mon Sep 17 00:00:00 2001 From: Mark Rousskov Date: Thu, 17 Aug 2023 09:01:33 -0400 Subject: [PATCH] Fix lints --- homu/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homu/main.py b/homu/main.py index 12a66e4..ab1d0c3 100644 --- a/homu/main.py +++ b/homu/main.py @@ -1668,7 +1668,7 @@ def synchronize(repo_label, repo_cfg, logger, gh, states, repos, db, mergeable_q def process_config(config): # Replace environment variables - if type(config) == str: + if type(config) is str: for var in VARIABLES_RE.findall(config): try: config = config.replace("${"+var+"}", os.environ[var]) @@ -1680,9 +1680,9 @@ def process_config(config): return config # Recursively apply the processing - elif type(config) == list: + elif type(config) is list: return [process_config(item) for item in config] - elif type(config) == dict: + elif type(config) is dict: return {key: process_config(value) for key, value in config.items()} # All other values should be returned as-is else: