From dc09a6be928dd34b84ff764fc08846445181b2f1 Mon Sep 17 00:00:00 2001 From: Ben Finney Date: Mon, 19 Dec 2022 09:24:54 +1100 Subject: [PATCH] Normalise indentation levels by wrapping at open parenthesis. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PEP 8 specifies: * Use 4 spaces per indentation level. * Continuation lines should align wrapped elements either vertically using Python’s implicit line joining inside parentheses, brackets and braces, or using a hanging indent. --- auth-mastodon.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/auth-mastodon.py b/auth-mastodon.py index e801f34..c7b79aa 100644 --- a/auth-mastodon.py +++ b/auth-mastodon.py @@ -19,10 +19,12 @@ db_query_getpass="select users.encrypted_password as password from accounts inne ######################################################################## sys.stderr = open('/var/log/ejabberd/extauth_err.log', 'a') -logging.basicConfig(level=logging.INFO, - format='%(asctime)s %(levelname)s %(message)s', - filename='/var/log/ejabberd/extauth.log', - filemode='a') +logging.basicConfig( + level=logging.INFO, + format='%(asctime)s %(levelname)s %(message)s', + filename='/var/log/ejabberd/extauth.log', + filemode='a', +) try: # Connect to the DB, set autocommit and readonly otherwise postgresql seems to have a