From 6a0855de5d29fd6f38ae886f9a817488134580dd Mon Sep 17 00:00:00 2001 From: Erica Portnoy Date: Mon, 22 Nov 2021 17:53:45 -0800 Subject: [PATCH] Apply lint's code style suggestions --- certbot-apache/certbot_apache/_internal/entrypoint.py | 2 +- certbot/certbot/_internal/client.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/certbot-apache/certbot_apache/_internal/entrypoint.py b/certbot-apache/certbot_apache/_internal/entrypoint.py index 4311b11c6..5430e9d79 100644 --- a/certbot-apache/certbot_apache/_internal/entrypoint.py +++ b/certbot-apache/certbot_apache/_internal/entrypoint.py @@ -56,7 +56,7 @@ def get_configurator(): os_like = util.get_systemd_os_like() if os_like: for os_name in os_like: - if os_name in OVERRIDE_CLASSES.keys(): + if os_name in OVERRIDE_CLASSES: override_class = OVERRIDE_CLASSES[os_name] if not override_class: # No override class found, return the generic configurator diff --git a/certbot/certbot/_internal/client.py b/certbot/certbot/_internal/client.py index 1a6f5ed1b..593ba460f 100644 --- a/certbot/certbot/_internal/client.py +++ b/certbot/certbot/_internal/client.py @@ -231,7 +231,7 @@ def perform_registration(acme, config, tos_cb): external_account_binding=cast(Optional[messages.ExternalAccountBinding], eab)) return acme.new_account_and_tos(newreg, tos_cb) except messages.Error as e: - if e.code == "invalidEmail" or e.code == "invalidContact": + if e.code in ('invalidEmail', 'invalidContact'): if config.noninteractive_mode: msg = ("The ACME server believes %s is an invalid email address. " "Please ensure it is a valid email and attempt "