From 247c4d9d2d3ebd4f063a0863a4010ecf6a918953 Mon Sep 17 00:00:00 2001 From: Ramon Bartl Date: Sat, 9 Nov 2024 12:25:22 +0100 Subject: [PATCH] Make pyflakes happy --- src/senaite/astm/protocol.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/senaite/astm/protocol.py b/src/senaite/astm/protocol.py index 36b3a85..5c20f55 100644 --- a/src/senaite/astm/protocol.py +++ b/src/senaite/astm/protocol.py @@ -4,7 +4,6 @@ import os from senaite.astm import adapter_registry -from senaite.astm import adapters from senaite.astm import logger from senaite.astm.constants import ACK from senaite.astm.constants import ENQ @@ -25,7 +24,6 @@ DEFAULT_FORMAT = "json" - class ASTMProtocol(asyncio.Protocol): """ASTM Protocol @@ -117,8 +115,9 @@ def data_received(self, data): def handle_data(self, data): """Process incoming data """ - # lookup custom adapter to handle the data - adapter = adapter_registry.queryMultiAdapter((self, data), IDataHandler) + # lookup custom multi-adapter to handle the data + adapter = adapter_registry.queryMultiAdapter( + (self, data), IDataHandler) if adapter and adapter.can_handle(): return adapter.handle_data()