diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-03-21 01:47:51 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-03-21 01:47:51 -0400 |
commit | c4065e5388de64c8ac6a3698192084c1df6149e7 (patch) | |
tree | af4eec772b0f8104939f5213c96aa390abc15be4 /cmd2/utils.py | |
parent | 179a64553fc42f15e55877896b91a8a6d9944380 (diff) | |
download | cmd2-git-c4065e5388de64c8ac6a3698192084c1df6149e7.tar.gz |
Changed StdSim byte buffer into a bytearray
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 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: |