From bb2bf536476549f4ab99daa984bf4c13763b95fc Mon Sep 17 00:00:00 2001 From: Athanasius Date: Sat, 3 Dec 2022 14:51:54 +0000 Subject: [PATCH] protocol.py: flake8 pass This is flake8 objecting to the "initialised later" `protocolhandler`. --- protocol.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/protocol.py b/protocol.py index 6db5d5be..27391498 100644 --- a/protocol.py +++ b/protocol.py @@ -107,11 +107,12 @@ if sys.platform == 'darwin' and getattr(sys, 'frozen', False): # noqa: C901 # i def handleEvent_withReplyEvent_(self, event, replyEvent) -> None: # noqa: N802 N803 # Required to override """Actual event handling from NSAppleEventManager.""" - protocolhandler.lasturl = urllib.parse.unquote( # type: ignore # Its going to be a DPH in this code + protocolhandler.lasturl = urllib.parse.unquote( # noqa: F821: type: ignore # Its going to be a DPH in + # this code event.paramDescriptorForKeyword_(keyDirectObject).stringValue() ).strip() - protocolhandler.master.after(DarwinProtocolHandler.POLL, protocolhandler.poll) # type: ignore + protocolhandler.master.after(DarwinProtocolHandler.POLL, protocolhandler.poll) # noqa: F821: type: ignore elif (config.auth_force_edmc_protocol @@ -389,7 +390,7 @@ else: # Linux / Run from source url = urllib.parse.unquote(self.path) if url.startswith('/auth'): logger.debug('Request starts with /auth, sending to protocolhandler.event()') - protocolhandler.event(url) + protocolhandler.event(url) # noqa: F821 self.send_response(200) return True else: