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:
Kevin O'Connor 2020-09-16 21:29:03 -04:00
parent 9814daa999
commit 3dc0522870
1 changed files with 0 additions and 2 deletions

View File

@ -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: