From 9c7e329bd79daabc6734539938319c9786368e0d Mon Sep 17 00:00:00 2001 From: Teal Dulcet Date: Wed, 8 Jan 2025 05:12:25 -0800 Subject: [PATCH] Fixed RUF031 (incorrectly-parenthesized-tuple-in-subscript): Avoid parentheses for tuples in subscripts --- management/mail_log.py | 2 +- management/status_checks.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/management/mail_log.py b/management/mail_log.py index 5abacc4f..c9a66939 100755 --- a/management/mail_log.py +++ b/management/mail_log.py @@ -495,7 +495,7 @@ def add_login(user, date, protocol_name, host, collector): data["latest"] = date data["totals_by_protocol"][protocol_name] += 1 - data["totals_by_protocol_and_host"][(protocol_name, host)] += 1 + data["totals_by_protocol_and_host"][protocol_name, host] += 1 if host not in {"127.0.0.1", "::1"} or True: data["activity-by-hour"][protocol_name][date.hour] += 1 diff --git a/management/status_checks.py b/management/status_checks.py index a282be88..284b8dd9 100755 --- a/management/status_checks.py +++ b/management/status_checks.py @@ -620,7 +620,7 @@ def check_dnssec(domain, env, output, dns_zonefiles, is_checking_primary=False): with open(os.path.join(env['STORAGE_ROOT'], 'dns/dnssec/' + dnssec_keys['KSK'] + '.key'), encoding="utf-8") as f: dnsssec_pubkey = f.read().split("\t")[3].split(" ")[3] - expected_ds_records[ (ds_keytag, ds_alg, ds_digalg, ds_digest) ] = { + expected_ds_records[ ds_keytag, ds_alg, ds_digalg, ds_digest ] = { "record": rr_ds, "keytag": ds_keytag, "alg": ds_alg,