Imported packages sequencing and formatting 2
This commit is contained in:
parent
3211fca953
commit
6139efc377
|
@ -1,6 +1,6 @@
|
||||||
import logging
|
import logging
|
||||||
from importlib import import_module
|
from importlib import import_module
|
||||||
from os import path, listdir
|
from os import listdir, path
|
||||||
from string import lower
|
from string import lower
|
||||||
|
|
||||||
import messagetypes
|
import messagetypes
|
||||||
|
|
|
@ -4,7 +4,6 @@ Announce myself (node address)
|
||||||
import time
|
import time
|
||||||
|
|
||||||
import state
|
import state
|
||||||
|
|
||||||
from bmconfigparser import BMConfigParser
|
from bmconfigparser import BMConfigParser
|
||||||
from network.assemble import assemble_addr
|
from network.assemble import assemble_addr
|
||||||
from network.connectionpool import BMConnectionPool
|
from network.connectionpool import BMConnectionPool
|
||||||
|
|
|
@ -19,9 +19,9 @@ from bmconfigparser import BMConfigParser
|
||||||
from inventory import Inventory
|
from inventory import Inventory
|
||||||
from network.advanceddispatcher import AdvancedDispatcher
|
from network.advanceddispatcher import AdvancedDispatcher
|
||||||
from network.bmobject import (
|
from network.bmobject import (
|
||||||
BMObject, BMObjectInsufficientPOWError, BMObjectInvalidDataError,
|
BMObject, BMObjectAlreadyHaveError, BMObjectExpiredError,
|
||||||
BMObjectExpiredError, BMObjectUnwantedStreamError,
|
BMObjectInsufficientPOWError, BMObjectInvalidDataError,
|
||||||
BMObjectInvalidError, BMObjectAlreadyHaveError
|
BMObjectInvalidError, BMObjectUnwantedStreamError
|
||||||
)
|
)
|
||||||
from network.constants import (
|
from network.constants import (
|
||||||
ADDRESS_ALIVE, MAX_MESSAGE_SIZE, MAX_OBJECT_COUNT,
|
ADDRESS_ALIVE, MAX_MESSAGE_SIZE, MAX_OBJECT_COUNT,
|
||||||
|
@ -30,8 +30,8 @@ from network.constants import (
|
||||||
from network.dandelion import Dandelion
|
from network.dandelion import Dandelion
|
||||||
from network.proxy import ProxyError
|
from network.proxy import ProxyError
|
||||||
from node import Node, Peer
|
from node import Node, Peer
|
||||||
from objectracker import missingObjects, ObjectTracker
|
from objectracker import ObjectTracker, missingObjects
|
||||||
from queues import objectProcessorQueue, portCheckerQueue, invQueue, addrQueue
|
from queues import addrQueue, invQueue, objectProcessorQueue, portCheckerQueue
|
||||||
from randomtrackingdict import RandomTrackingDict
|
from randomtrackingdict import RandomTrackingDict
|
||||||
|
|
||||||
logger = logging.getLogger('default')
|
logger = logging.getLogger('default')
|
||||||
|
|
|
@ -6,8 +6,8 @@ import Queue
|
||||||
import socket
|
import socket
|
||||||
|
|
||||||
import state
|
import state
|
||||||
from network.connectionpool import BMConnectionPool
|
|
||||||
from network.advanceddispatcher import UnknownStateError
|
from network.advanceddispatcher import UnknownStateError
|
||||||
|
from network.connectionpool import BMConnectionPool
|
||||||
from queues import receiveDataQueue
|
from queues import receiveDataQueue
|
||||||
from threads import StoppableThread
|
from threads import StoppableThread
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ SOCKS4a proxy module
|
||||||
import socket
|
import socket
|
||||||
import struct
|
import struct
|
||||||
|
|
||||||
from proxy import Proxy, ProxyError, GeneralProxyError
|
from proxy import GeneralProxyError, Proxy, ProxyError
|
||||||
|
|
||||||
|
|
||||||
class Socks4aError(ProxyError):
|
class Socks4aError(ProxyError):
|
||||||
|
|
|
@ -7,11 +7,10 @@ import socket
|
||||||
import ssl
|
import ssl
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from network.advanceddispatcher import AdvancedDispatcher
|
|
||||||
import network.asyncore_pollchoose as asyncore
|
import network.asyncore_pollchoose as asyncore
|
||||||
|
|
||||||
from queues import receiveDataQueue
|
|
||||||
import paths
|
import paths
|
||||||
|
from network.advanceddispatcher import AdvancedDispatcher
|
||||||
|
from queues import receiveDataQueue
|
||||||
|
|
||||||
logger = logging.getLogger('default')
|
logger = logging.getLogger('default')
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ A menu plugin showing QR-Code for bitmessage address in modal dialog.
|
||||||
import urllib
|
import urllib
|
||||||
|
|
||||||
import qrcode
|
import qrcode
|
||||||
from PyQt4 import QtGui, QtCore
|
from PyQt4 import QtCore, QtGui
|
||||||
|
|
||||||
from pybitmessage.tr import _translate
|
from pybitmessage.tr import _translate
|
||||||
|
|
||||||
|
|
|
@ -11,8 +11,8 @@ Configure tor proxy and hidden service with
|
||||||
* otherwise use stem's 'BEST' version and save onion keys to the new
|
* otherwise use stem's 'BEST' version and save onion keys to the new
|
||||||
section using *onionhostname* as name for future use.
|
section using *onionhostname* as name for future use.
|
||||||
"""
|
"""
|
||||||
import os
|
|
||||||
import logging
|
import logging
|
||||||
|
import os
|
||||||
import random # noseq
|
import random # noseq
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
|
|
|
@ -3,9 +3,8 @@
|
||||||
Sound theme plugin using pycanberra
|
Sound theme plugin using pycanberra
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from pybitmessage.bitmessageqt import sound
|
|
||||||
|
|
||||||
import pycanberra
|
import pycanberra
|
||||||
|
from pybitmessage.bitmessageqt import sound
|
||||||
|
|
||||||
_canberra = pycanberra.Canberra()
|
_canberra = pycanberra.Canberra()
|
||||||
|
|
||||||
|
|
|
@ -9,11 +9,11 @@ For modern cryptography with ECC, AES, HMAC, Blowfish, ...
|
||||||
This is an abandoned package maintained inside of the PyBitmessage.
|
This is an abandoned package maintained inside of the PyBitmessage.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from .openssl import OpenSSL
|
from .cipher import Cipher
|
||||||
from .ecc import ECC
|
from .ecc import ECC
|
||||||
from .eccblind import ECCBlind
|
from .eccblind import ECCBlind
|
||||||
from .cipher import Cipher
|
|
||||||
from .hash import hmac_sha256, hmac_sha512, pbkdf2
|
from .hash import hmac_sha256, hmac_sha512, pbkdf2
|
||||||
|
from .openssl import OpenSSL
|
||||||
|
|
||||||
__version__ = '1.3'
|
__version__ = '1.3'
|
||||||
|
|
||||||
|
|
|
@ -6,9 +6,9 @@
|
||||||
This module loads openssl libs with ctypes and incapsulates
|
This module loads openssl libs with ctypes and incapsulates
|
||||||
needed openssl functionality in class _OpenSSL.
|
needed openssl functionality in class _OpenSSL.
|
||||||
"""
|
"""
|
||||||
# pylint: disable=protected-access
|
|
||||||
import sys
|
|
||||||
import ctypes
|
import ctypes
|
||||||
|
import sys
|
||||||
|
# pylint: disable=protected-access
|
||||||
|
|
||||||
OpenSSL = None
|
OpenSSL = None
|
||||||
|
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
"""
|
"""
|
||||||
Module for using filesystem (directory with files) for inventory storage
|
Module for using filesystem (directory with files) for inventory storage
|
||||||
"""
|
"""
|
||||||
|
import string
|
||||||
|
import time
|
||||||
from binascii import hexlify, unhexlify
|
from binascii import hexlify, unhexlify
|
||||||
from os import listdir, makedirs, path, remove, rmdir
|
from os import listdir, makedirs, path, remove, rmdir
|
||||||
import string
|
|
||||||
from threading import RLock
|
from threading import RLock
|
||||||
import time
|
|
||||||
|
|
||||||
from paths import lookupAppdataFolder
|
from paths import lookupAppdataFolder
|
||||||
from storage import InventoryStorage, InventoryItem
|
from storage import InventoryItem, InventoryStorage
|
||||||
|
|
||||||
|
|
||||||
class FilesystemInventory(InventoryStorage):
|
class FilesystemInventory(InventoryStorage):
|
||||||
|
|
|
@ -5,8 +5,8 @@ import sqlite3
|
||||||
import time
|
import time
|
||||||
from threading import RLock
|
from threading import RLock
|
||||||
|
|
||||||
from helper_sql import sqlQuery, SqlBulkExecute, sqlExecute
|
from helper_sql import SqlBulkExecute, sqlExecute, sqlQuery
|
||||||
from storage import InventoryStorage, InventoryItem
|
from storage import InventoryItem, InventoryStorage
|
||||||
|
|
||||||
|
|
||||||
class SqliteInventory(InventoryStorage): # pylint: disable=too-many-ancestors
|
class SqliteInventory(InventoryStorage): # pylint: disable=too-many-ancestors
|
||||||
|
|
Loading…
Reference in New Issue
Block a user