Skip to content

Commit f3ef4f7

Browse files
committed
Auto-format with black
1 parent 3227494 commit f3ef4f7

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

python-bitwise-operators/stegano/bitmap.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ def __getattr__(self, name: str) -> Any:
3131
def __getitem__(self, offset: Union[int, slice]) -> Union[int, bytes]:
3232
return self._file_bytes[offset]
3333

34-
def __setitem__(self, offset: Union[int, slice], value: Union[int, bytes]) -> None:
34+
def __setitem__(
35+
self, offset: Union[int, slice], value: Union[int, bytes]
36+
) -> None:
3537
self._file_bytes[offset] = value
3638

3739
@property

python-bitwise-operators/stegano/decoder.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,9 @@ def decode(bitmap: Bitmap) -> None:
2727
def secret_bytes(bitmap) -> Iterator[int]:
2828
"""Return an iterator over secret bytes."""
2929
for eight_bytes in bitmap.byte_slices:
30-
yield sum([(byte & 1) << (7 - i) for i, byte in enumerate(bitmap[eight_bytes])])
30+
yield sum(
31+
[
32+
(byte & 1) << (7 - i)
33+
for i, byte in enumerate(bitmap[eight_bytes])
34+
]
35+
)

0 commit comments

Comments
 (0)