Agent: Update TODO in bit_manipulators.py

This commit is contained in:
Mike Salvatore 2022-03-29 12:57:31 -04:00
parent baa9de4087
commit 9ded75d05d
1 changed files with 4 additions and 0 deletions

View File

@ -14,6 +14,10 @@ def flip_bits(data: bytes) -> bytes:
# Remove the flip_bits_in_single_byte() function and rework the
# unit tests so that we still have a high-degree of confidence
# that this code is correct.
#
# EDIT: I believe PyPy will attempt to inline functions
# automatically. I don't know that CPython makes any such
# optimizations.
flipped_bits[i] = flip_bits_in_single_byte(byte)
return bytes(flipped_bits)