trx_toolkit: get rid of Python2 specific workarounds
Change-Id: I16c63205c9133d964048588c25867ac7c310f951
This commit is contained in:
parent
49673e4073
commit
1e20f8e042
|
@ -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()
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue