Standardize imports: standard newline package newline tfw

This commit is contained in:
Kristóf Tóth 2018-03-25 15:43:59 +02:00
parent a3fa75b676
commit 1e2ea0ed17
9 changed files with 12 additions and 7 deletions

View File

@ -1,6 +1,7 @@
from functools import wraps
from watchdog.observers import Observer from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler as FileSystemWatchdogEventHandler from watchdog.events import FileSystemEventHandler as FileSystemWatchdogEventHandler
from functools import wraps
from tfw.networking.event_handlers.server_connector import ServerUplinkConnector from tfw.networking.event_handlers.server_connector import ServerUplinkConnector
from tfw.components.decorators import RateLimiter from tfw.components.decorators import RateLimiter

View File

@ -1,6 +1,7 @@
from os.path import dirname
from watchdog.observers import Observer from watchdog.observers import Observer
from watchdog.events import PatternMatchingEventHandler from watchdog.events import PatternMatchingEventHandler
from os.path import dirname
from tfw.components.mixins.callback_mixin import CallbackMixin from tfw.components.mixins.callback_mixin import CallbackMixin

View File

@ -1,6 +1,6 @@
import xmlrpc.client import xmlrpc.client
from contextlib import suppress
from xmlrpc.client import Fault as SupervisorFault from xmlrpc.client import Fault as SupervisorFault
from contextlib import suppress
from os import remove from os import remove
from tfw.config import tfwenv from tfw.config import tfwenv

View File

@ -5,7 +5,6 @@ from collections import Iterable
from tfw.event_handler_base import TriggerlessEventHandler from tfw.event_handler_base import TriggerlessEventHandler
from tfw.components.directory_monitor import DirectoryMonitor from tfw.components.directory_monitor import DirectoryMonitor
from tfw.config.logs import logging from tfw.config.logs import logging
log = logging.getLogger(__name__) log = logging.getLogger(__name__)

View File

@ -1,4 +1,5 @@
from typing import List from typing import List
from transitions import Machine from transitions import Machine
from tfw.components.mixins.callback_mixin import CallbackMixin from tfw.components.mixins.callback_mixin import CallbackMixin

View File

@ -1,5 +1,6 @@
import zmq
from functools import partial from functools import partial
import zmq
from zmq.eventloop.zmqstream import ZMQStream from zmq.eventloop.zmqstream import ZMQStream
from tfw.networking.serialization import serialize_all from tfw.networking.serialization import serialize_all

View File

@ -1,11 +1,11 @@
import zmq import zmq
from zmq.eventloop.zmqstream import ZMQStream from zmq.eventloop.zmqstream import ZMQStream
from tfw.networking.zmq_connector_base import ZMQConnectorBase
from tfw.networking.serialization import serialize_all from tfw.networking.serialization import serialize_all
from tfw.config import tfwenv from tfw.config import tfwenv
from tfw.config.logs import logging from tfw.config.logs import logging
log = logging.getLogger(__name__) log = logging.getLogger(__name__)
from tfw.networking.zmq_connector_base import ZMQConnectorBase
class EventHandlerDownlinkConnector(ZMQConnectorBase): class EventHandlerDownlinkConnector(ZMQConnectorBase):

View File

@ -1,6 +1,7 @@
from tornado.web import Application
from collections import defaultdict from collections import defaultdict
from tornado.web import Application
from tfw.networking.server.zmq_websocket_handler import ZMQWebSocketProxy from tfw.networking.server.zmq_websocket_handler import ZMQWebSocketProxy
from tfw.networking.event_handlers.server_connector import ServerUplinkConnector from tfw.networking.event_handlers.server_connector import ServerUplinkConnector
from tfw.message_sender import MessageSender from tfw.message_sender import MessageSender

View File

@ -1,4 +1,5 @@
import json import json
from tornado.websocket import WebSocketHandler from tornado.websocket import WebSocketHandler
from tfw.networking.serialization import deserialize_all from tfw.networking.serialization import deserialize_all