diff options
-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: |