Skip to content
This repository was archived by the owner on Dec 17, 2022. It is now read-only.

Commit e2b1613

Browse files
committed
Autoformat an archived module
1 parent b307d70 commit e2b1613

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

archive/bytes_int_encoder.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def encode(self, chars: bytes) -> int:
2727

2828
def decode(self, i: int) -> bytes:
2929
"""Return the original bytes representation of the given integer."""
30-
maxint = (2 ** self._num_bits_per_char) - 1
30+
maxint = (2**self._num_bits_per_char) - 1
3131
output = bytes(((i >> offset) & maxint) for offset in range(0, i.bit_length(), self._num_bits_per_char))
3232
return output.translate(self._reverse_translation_table)
3333

@@ -56,8 +56,8 @@ def test_thoroughly_with_small_str(self):
5656
def test_randomly_with_large_str(self):
5757
for s_len in range(256):
5858
num_samples = {
59-
s_len <= 16: 2 ** s_len,
60-
16 < s_len <= 32: s_len ** 2,
59+
s_len <= 16: 2**s_len,
60+
16 < s_len <= 32: s_len**2,
6161
s_len > 32: s_len * 2,
6262
s_len > 64: s_len,
6363
s_len > 128: 2,

0 commit comments

Comments
 (0)