unsatisfyingly fix a mypy bytes vs. bytearray issue
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
parent
2a40c70b56
commit
eb95c80815
@ -217,7 +217,7 @@ def get_config_from_file(filename: str, whole_board: bool = False, allow_no_file
|
|||||||
try:
|
try:
|
||||||
with open(filename, 'rb') as dump:
|
with open(filename, 'rb') as dump:
|
||||||
if filename[-4:] == '.uf2':
|
if filename[-4:] == '.uf2':
|
||||||
content = bytes(convert_uf2_to_binary(dump.read()))
|
content = bytes(convert_uf2_to_binary(bytearray(dump.read())))
|
||||||
else:
|
else:
|
||||||
content = dump.read()
|
content = dump.read()
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user