Skip to content

Commit c4065e5

Browse files
committed
Changed StdSim byte buffer into a bytearray
1 parent 179a645 commit c4065e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd2/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ class ByteBuf(object):
362362
Used by StdSim to write binary data and stores the actual bytes written
363363
"""
364364
def __init__(self, std_sim_instance: StdSim) -> None:
365-
self.byte_buf = b''
365+
self.byte_buf = bytearray()
366366
self.std_sim_instance = std_sim_instance
367367

368368
def write(self, b: bytes) -> None:

0 commit comments

Comments
 (0)