summaryrefslogtreecommitdiff
path: root/cmd2/utils.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-04-11 18:01:02 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2019-04-11 18:01:02 -0400
commit7f5339ecb68c2f788e51f7e98589d35f1e53069e (patch)
treece1cddc1266ffd23528d5fcd74dada489dee85ca /cmd2/utils.py
parentf5c904cda48c03a30b3476f3a40224226391deea (diff)
downloadcmd2-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.py2
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"""