diff options
Diffstat (limited to 'cmd2/utils.py')
-rw-r--r-- | cmd2/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2/utils.py b/cmd2/utils.py index d8ac513d..e4ea79ef 100644 --- a/cmd2/utils.py +++ b/cmd2/utils.py @@ -325,7 +325,7 @@ class StdSim(object): def getbytes(self) -> bytes: """Get the internal contents as bytes""" - return self.buffer.byte_buf + return bytes(self.buffer.byte_buf) def read(self) -> str: """Read from the internal contents as a str and then clear them out""" |