fix main init formatting
parent
b8c288259b
commit
e77d422fc2
|
@ -1,6 +1,5 @@
|
|||
#!/usr/bin/env python3
|
||||
"""
|
||||
Onionr - Private P2P Communication
|
||||
"""Onionr - Private P2P Communication.
|
||||
|
||||
This file initializes Onionr when ran to be a daemon or with commands
|
||||
|
||||
|
@ -23,7 +22,7 @@
|
|||
|
||||
# Set the user's locale for encoding reasons
|
||||
import locale # noqa
|
||||
locale.setlocale(locale.LC_ALL, '')
|
||||
locale.setlocale(locale.LC_ALL, '') # noqa
|
||||
|
||||
ran_as_script = False
|
||||
if __name__ == "__main__": ran_as_script = True
|
||||
|
@ -52,7 +51,8 @@ min_ver = onionrvalues.MIN_PY_VERSION
|
|||
|
||||
# Ensure we have at least the minimum python version
|
||||
if sys.version_info[0] == 2 or sys.version_info[1] < min_ver:
|
||||
sys.stderr.write('Error, Onionr requires Python 3.' + str(min_ver) + '\n')
|
||||
sys.stderr.write(
|
||||
'Error, Onionr requires Python 3.' + str(min_ver) + '\n')
|
||||
sys.exit(1)
|
||||
|
||||
# Create Onionr data directories, must be done before most imports
|
||||
|
@ -67,7 +67,7 @@ from onionrblocks.deleteplaintext import delete_plaintext_no_blacklist # noqa
|
|||
setup.setup_config()
|
||||
|
||||
import config # noqa
|
||||
from utils import identifyhome
|
||||
from utils import identifyhome # noqa
|
||||
|
||||
if config.get('advanced.security_auditing', True):
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue