trivial: Blacken Python source files

This commit is contained in:
Richard Hughes 2021-01-12 21:31:30 +00:00
parent 7013c41bb4
commit 2551862c81
2 changed files with 6 additions and 1 deletions

View File

@ -10,6 +10,7 @@ import sys
import shutil
from generate_dependencies import parse_dependencies
def get_container_cmd():
'''return docker or podman as container manager'''

View File

@ -62,13 +62,16 @@ def parse_args():
help="Reinstall payloads(default False)",
)
parser.add_argument(
"command", choices=["get-devices", "get-details", "install", "refresh"], help="What to do"
"command",
choices=["get-devices", "get-details", "install", "refresh"],
help="What to do",
)
parser.add_argument('cab', nargs='?', help='CAB file')
parser.add_argument('deviceid', nargs='?', help='DeviceID to operate on(optional)')
args = parser.parse_args()
return args
def refresh(client):
"""Uses fwupd client to refresh metadata"""
remotes = client.get_remotes()
@ -80,6 +83,7 @@ def refresh(client):
continue
client.refresh_remote(remote)
def get_devices(client):
"""Use fwupd client to fetch devices"""
devices = client.get_devices()