mirror of
https://github.com/romanz/amodem.git
synced 2026-04-26 01:48:36 +08:00
fix style complaints
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user