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 dc09a6be92 - Show all commits

View file

@ -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') sys.stderr = open('/var/log/ejabberd/extauth_err.log', 'a')
logging.basicConfig(level=logging.INFO, logging.basicConfig(
format='%(asctime)s %(levelname)s %(message)s', level=logging.INFO,
filename='/var/log/ejabberd/extauth.log', format='%(asctime)s %(levelname)s %(message)s',
filemode='a') filename='/var/log/ejabberd/extauth.log',
filemode='a',
)
try: try:
# Connect to the DB, set autocommit and readonly otherwise postgresql seems to have a # Connect to the DB, set autocommit and readonly otherwise postgresql seems to have a