summaryrefslogtreecommitdiff
path: root/cmd2/utils.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-03-21 01:47:51 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2019-03-21 01:47:51 -0400
commitc4065e5388de64c8ac6a3698192084c1df6149e7 (patch)
treeaf4eec772b0f8104939f5213c96aa390abc15be4 /cmd2/utils.py
parent179a64553fc42f15e55877896b91a8a6d9944380 (diff)
downloadcmd2-git-c4065e5388de64c8ac6a3698192084c1df6149e7.tar.gz
Changed StdSim byte buffer into a bytearray
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 2a8f3ab1..82026d3a 100644
--- a/cmd2/utils.py
+++ b/cmd2/utils.py
@@ -362,7 +362,7 @@ class ByteBuf(object):
Used by StdSim to write binary data and stores the actual bytes written
"""
def __init__(self, std_sim_instance: StdSim) -> None:
- self.byte_buf = b''
+ self.byte_buf = bytearray()
self.std_sim_instance = std_sim_instance
def write(self, b: bytes) -> None: