From 3ef1d5daae7304e0cf22fccba09239601ef0a90e Mon Sep 17 00:00:00 2001 From: Ben Finney Date: Mon, 19 Dec 2022 09:25:24 +1100 Subject: [PATCH] =?UTF-8?q?Use=20a=20separate=20=E2=80=98import=E2=80=99?= =?UTF-8?q?=20statement=20for=20each=20module/package,=20grouped.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PEP 8 specifies: * Imports should usually be on separate lines. * Imports are always put at the top of the file, just after any module comments and docstrings, and before module globals and constants. * Imports should be grouped in the following order: * Standard library imports. * Related third party imports. * Local application/library specific imports. --- auth-mastodon.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/auth-mastodon.py b/auth-mastodon.py index e7d9cdb..e7b36ae 100644 --- a/auth-mastodon.py +++ b/auth-mastodon.py @@ -1,6 +1,15 @@ #!/usr/bin/env python3 -import os, sys, logging, struct, psycopg2, bcrypt, random, atexit, time +import atexit +import logging +import os +import struct +import sys +import random +import time + +import bcrypt +import psycopg2 # Database connection details. The credentials here need access to the Mastodon database, which "ejabberd" is unlikely