serialhdl: Don't define a __del__() method
The existence of a __del__() method prevents deallocation on python2 if there are circular references. Just remove the method as disconnect() should already be called directly. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
9814daa999
commit
3dc0522870
|
@ -222,8 +222,6 @@ class SerialReader:
|
||||||
logging.info("%s: %s", params['#name'], params['#msg'])
|
logging.info("%s: %s", params['#name'], params['#msg'])
|
||||||
def handle_default(self, params):
|
def handle_default(self, params):
|
||||||
logging.warn("got %s", params)
|
logging.warn("got %s", params)
|
||||||
def __del__(self):
|
|
||||||
self.disconnect()
|
|
||||||
|
|
||||||
# Class to send a query command and return the received response
|
# Class to send a query command and return the received response
|
||||||
class SerialRetryCommand:
|
class SerialRetryCommand:
|
||||||
|
|
Loading…
Reference in New Issue