From 9fd05aa932d41ae30797c1cb2085224d9bfd0e0c Mon Sep 17 00:00:00 2001 From: Sven Czarnian Date: Sun, 5 Sep 2021 18:59:16 +0200 Subject: [PATCH] fix code formatting --- aman/com/Euroscope.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/aman/com/Euroscope.py b/aman/com/Euroscope.py index 585ff4f..ac2b79b 100644 --- a/aman/com/Euroscope.py +++ b/aman/com/Euroscope.py @@ -4,7 +4,6 @@ import ctypes import glob import os import sys -import threading import time import zmq @@ -12,10 +11,11 @@ import zmq.auth from aman.com import AircraftReport_pb2 from aman.config.Server import Server +from threading import Thread, _active -class ReceiverThread(threading.Thread): +class ReceiverThread(Thread): def __init__(self, socket, aman): - threading.Thread.__init__(self) + Thread.__init__(self) self.socket = socket self.aman = aman @@ -41,7 +41,7 @@ class ReceiverThread(threading.Thread): def threadId(self): if hasattr(self, '_thread_id'): return self._thread_id - for id, thread in threading._active.items(): + for id, thread in _active.items(): if thread is self: return id