Corect code style for main Python module. #2

Merged
mike merged 17 commits from bignose/ejabberd-auth-mastodon:wip/maintenance/code-style into master 2023-01-01 21:50:41 +11:00
Showing only changes of commit 9a2d05e51f - Show all commits

View file

@ -24,7 +24,7 @@ db_name="mastodon"
db_query_getpass="select users.encrypted_password as password from accounts inner join users on accounts.id=users.account_id where lower(accounts.username) = %(user)s and accounts.domain is null"
########################################################################
#Setup
# Setup
########################################################################
sys.stderr = open('/var/log/ejabberd/extauth_err.log', 'a')
@ -67,7 +67,7 @@ class EjabberdInputError(Exception):
########################################################################
#Declarations
# Declarations
########################################################################
def ejabberd_in():
@ -138,7 +138,7 @@ def auth(user, host, password):
########################################################################
#Main Loop
# Main Loop
########################################################################
exitcode=0