fix lint complaining about long lines

This commit is contained in:
Mike Kinney
2022-02-01 12:00:58 -08:00
parent 5241fabb33
commit ff5652058d
2 changed files with 4 additions and 2 deletions

View File

@@ -175,7 +175,8 @@ def detect_windows_port(sd):
system = platform.system()
if system == "Windows":
command = 'powershell.exe "[Console]::OutputEncoding = [Text.UTF8Encoding]::UTF8; Get-PnpDevice -PresentOnly | Where-Object{ ($_.DeviceId -like '
command = ('powershell.exe "[Console]::OutputEncoding = [Text.UTF8Encoding]::UTF8;'
'Get-PnpDevice -PresentOnly | Where-Object{ ($_.DeviceId -like ')
command += f"'*{sd.usb_vendor_id_in_hex.upper()}*'"
command += ')} | Format-List"'