From 564602400f45fc86a4357181ae83027a91566a7a Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Mon, 17 Jul 2023 19:08:08 +0200 Subject: [PATCH] tools: pylint make-autosuspend-rules.py --- tools/make-autosuspend-rules.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/make-autosuspend-rules.py b/tools/make-autosuspend-rules.py index 633b7711d1..b1b4cef1be 100755 --- a/tools/make-autosuspend-rules.py +++ b/tools/make-autosuspend-rules.py @@ -12,13 +12,13 @@ for entry in chromiumos.gen_autosuspend_rules.PCI_IDS: vendor, device = entry.split(':') vendor = int(vendor, 16) device = int(device, 16) - print('pci:v{:08X}d{:08X}*'.format(vendor, device)) + print(f'pci:v{vendor:08X}d{device:08X}*') print('# usb:vp (4 uppercase hexadecimal digits twice)') for entry in chromiumos.gen_autosuspend_rules.USB_IDS: vendor, product = entry.split(':') vendor = int(vendor, 16) product = int(product, 16) - print('usb:v{:04X}p{:04X}*'.format(vendor, product)) + print(f'usb:v{vendor:04X}p{product:04X}*') print(' ID_AUTOSUSPEND=1') -- 2.25.1