Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions serial_asyncio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,14 @@ def abort(self):
"""
self._abort(None)

def get_protocol(self):
"""Return the current protocol."""
return self._protocol

def set_protocol(self, protocol):
"""Set a new protocol.""".
self._protocol = protocol

def flush(self):
""" clears output buffer and stops any more data being written
"""
Expand Down