trx_toolkit: get rid of Python2 specific workarounds

Change-Id: I16c63205c9133d964048588c25867ac7c310f951
This commit is contained in:
Vadim Yanitskiy 2020-07-16 13:58:34 +07:00
parent 49673e4073
commit 1e20f8e042
2 changed files with 1 additions and 4 deletions

View File

@ -83,8 +83,6 @@ class DATADumpFile(DATADump):
self.f = capture
def __del__(self):
# FIXME: this causes an Exception in Python 2 (but not in Python 3)
# AttributeError: 'NoneType' object has no attribute 'info'
log.info("Closing the capture file")
self.f.close()

View File

@ -326,8 +326,7 @@ class Transceiver:
def tx_queue_clear(self):
with self._tx_queue_lock:
# TODO: Python3: self._tx_queue.clear()
del self._tx_queue[:]
self._tx_queue.clear()
def clck_tick(self, fwd, fn):
if not self.running: