fix style complaints

This commit is contained in:
matejcik
2018-12-10 16:30:56 +01:00
parent 2cb64991c3
commit 5cfdc7734b
3 changed files with 20 additions and 5 deletions

View File

@@ -114,6 +114,11 @@ class Device:
raise NotImplementedError()
def close(self):
"""Close connection to device.
By default, close the underlying connection. Overriding classes
can perform their own cleanup.
"""
self.conn.close()
def __enter__(self):