mirror of
https://github.com/JakeHillion/drgn.git
synced 2024-12-23 09:43:06 +00:00
vmtest/manage: don't open-code dict.fromkeys()
This commit is contained in:
parent
c55d199e0c
commit
2a31b052fa
@ -583,7 +583,7 @@ async def main() -> None:
|
||||
|
||||
async with aiohttp.ClientSession(trust_env=True) as http_client:
|
||||
# dict rather than set to preserve insertion order.
|
||||
to_build = {build: True for build in (args.build or ())}
|
||||
to_build = dict.fromkeys(args.build or ())
|
||||
if args.build_kernel_org:
|
||||
try:
|
||||
logger.info(
|
||||
@ -597,7 +597,7 @@ async def main() -> None:
|
||||
logger.info("available releases: %s", ", ".join(sorted(available)))
|
||||
for kernel in kernel_org:
|
||||
if kernel not in available:
|
||||
to_build[kernel] = True
|
||||
to_build[kernel] = None
|
||||
except Exception:
|
||||
logger.exception(
|
||||
"failed to get kernel.org releases and/or available releases"
|
||||
|
Loading…
Reference in New Issue
Block a user