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:
parent
83a88c4ea7
commit
fc8fd02213
12 changed files with 20 additions and 29 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue