peewee_test: tiny style correction (f-string that uselessly spanned 2 lines)

This commit is contained in:
Cacahuete Lenovo Ubuntu 2018-10-04 00:38:51 +02:00
parent 2c638f3968
commit 807e434987

View file

@ -53,8 +53,7 @@ class Event(BaseModel):
def int_from_list(bit_list):
if len(bit_list) != 7:
raise ValueError(f"Given list is of length {len(bit_list)} "
f"instead of 7")
raise ValueError(f"Given list is of length {len(bit_list)} instead of 7")
reduced = 0
for i, b in enumerate(bit_list):
reduced += b * 2**i