diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-04-11 18:01:02 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-04-11 18:01:02 -0400 |
commit | 7f5339ecb68c2f788e51f7e98589d35f1e53069e (patch) | |
tree | ce1cddc1266ffd23528d5fcd74dada489dee85ca /cmd2/utils.py | |
parent | f5c904cda48c03a30b3476f3a40224226391deea (diff) | |
download | cmd2-git-7f5339ecb68c2f788e51f7e98589d35f1e53069e.tar.gz |
Fixed issue where pointer to bytearray was being returned instead of copied bytes
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""" |