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 f5c904c commit 7f5339eCopy full SHA for 7f5339e
cmd2/utils.py
@@ -325,7 +325,7 @@ def getvalue(self) -> str:
325
326
def getbytes(self) -> bytes:
327
"""Get the internal contents as bytes"""
328
- return self.buffer.byte_buf
+ return bytes(self.buffer.byte_buf)
329
330
def read(self) -> str:
331
"""Read from the internal contents as a str and then clear them out"""
0 commit comments