Skip to content

Commit

Permalink
Replace some whole-slices with list.copy()
Browse files Browse the repository at this point in the history
  • Loading branch information
bitprophet committed Jan 7, 2023
1 parent 86af77c commit 2bc32ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def make_tcattrs(cc_is_ints=True, echo=False):
# the 'cc' members...docs say ints, reality says one-byte
# bytestrings...
cc_base = [None] * (max(termios.VMIN, termios.VTIME) + 1)
cc_ints, cc_bytes = cc_base[:], cc_base[:]
cc_ints, cc_bytes = cc_base.copy(), cc_base.copy()
cc_ints[termios.VMIN], cc_ints[termios.VTIME] = 1, 0
cc_bytes[termios.VMIN], cc_bytes[termios.VTIME] = b"\x01", b"\x00"
# Set tcgetattr to look like it's already cbroken...
Expand Down

0 comments on commit 2bc32ad

Please sign in to comment.