1
0
Fork 1
mirror of https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git synced 2025-07-24 13:05:09 +03:00

pmb, tests: Enable Refurb checks

Simplifies some code.
This commit is contained in:
Newbyte 2025-05-26 21:17:21 +02:00
parent 83a88c4ea7
commit fc8fd02213
12 changed files with 20 additions and 29 deletions

View file

@ -178,8 +178,7 @@ def random_valid_deviceinfo(tmp_path):
# Now write it all out to a file
with open(path, "w") as f:
for key, value in info.items():
f.write(f'deviceinfo_{key}="{value}"\n')
f.writelines(f'deviceinfo_{key}="{value}"\n' for key, value in info.items())
return path