Skip to content

Commit 39678db

Browse files
Apply black formatting to pci.py
Apply black formatting to pci.py Signed-off-by: Praveen K Pandey <praveen@linux.vnet.ibm.com>
1 parent 1b8610f commit 39678db

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

avocado/utils/pci.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,10 @@ def unbind(driver, full_pci_address):
334334
"""
335335
genio.write_file_or_fail(f"/sys/bus/pci/drivers/{driver}/unbind", full_pci_address)
336336
if wait.wait_for(
337-
lambda: os.path.exists(f"/sys/bus/pci/drivers/\
338-
{driver}/{full_pci_address}"),
337+
lambda: os.path.exists(
338+
f"/sys/bus/pci/drivers/\
339+
{driver}/{full_pci_address}"
340+
),
339341
timeout=5,
340342
):
341343
raise ValueError(f"Not able to unbind {full_pci_address} from {driver}")
@@ -351,8 +353,10 @@ def bind(driver, full_pci_address):
351353
"""
352354
genio.write_file_or_fail(f"/sys/bus/pci/drivers/{driver}/bind", full_pci_address)
353355
if not wait.wait_for(
354-
lambda: os.path.exists(f"/sys/bus/pci/drivers/\
355-
{driver}/{full_pci_address}"),
356+
lambda: os.path.exists(
357+
f"/sys/bus/pci/drivers/\
358+
{driver}/{full_pci_address}"
359+
),
356360
timeout=5,
357361
):
358362
raise ValueError(f"Not able to bind {full_pci_address} to {driver}")

0 commit comments

Comments
 (0)