We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f5339e commit 1f08873Copy full SHA for 1f08873
cmd2/utils.py
@@ -341,7 +341,7 @@ def readbytes(self) -> bytes:
341
342
def clear(self) -> None:
343
"""Clear the internal contents"""
344
- self.buffer.byte_buf = bytearray()
+ self.buffer.byte_buf.clear()
345
346
def isatty(self) -> bool:
347
"""StdSim only considered an interactive stream if `echo` is True and `inner_stream` is a tty."""
0 commit comments