From cbae8132edae7f2fd4a4c4ceb1f74c59dd843975 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 19 Aug 2020 22:20:00 +0200 Subject: [PATCH] Python 3.5 compatibility --- platypush/plugins/zeroconf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/plugins/zeroconf.py b/platypush/plugins/zeroconf.py index f8ee50960..d375bd3f9 100644 --- a/platypush/plugins/zeroconf.py +++ b/platypush/plugins/zeroconf.py @@ -128,7 +128,7 @@ class ZeroconfPlugin(Plugin): while timeout and time.time() - discovery_start < timeout: to = discovery_start + timeout - time.time() if timeout else None try: - evt: ZeroconfEvent = evt_queue.get(block=True, timeout=to) + evt = evt_queue.get(block=True, timeout=to) if isinstance(evt, ZeroconfServiceAddedEvent) or isinstance(evt, ZeroconfServiceUpdatedEvent): services[evt.service_name] = { 'type': evt.service_type,