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.pull/2/head
rodzic
e30ab77cf4
commit
3ef1d5daae
|
@ -1,6 +1,15 @@
|
||||||
#!/usr/bin/env python3
|
#!/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
|
# Database connection details. The credentials here need access to the Mastodon database, which "ejabberd" is unlikely
|
||||||
|
|
Ładowanie…
Reference in New Issue