Use a separate ‘import’ statement for each module/package, grouped.
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.
This commit is contained in:
parent
e30ab77cf4
commit
3ef1d5daae
1 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue