Skip to content

Commit 821fabe

Browse files
committed
style: run linter with new black settings
Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de>
1 parent de2227e commit 821fabe

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

tests/helper.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ def __init__(self, path: str, num_ports: int = 5) -> None:
2424
super().__init__(path, False)
2525

2626
def __stdout(self, prefix: str = "Current", port_filter: int = None):
27-
stdout = [
28-
f"{prefix} status for hub {self.path} [0424:9512, USB 2.00, {self.num_ports} ports, ppps]".encode()
29-
]
27+
stdout = [f"{prefix} status for hub {self.path} [0424:9512, USB 2.00, {self.num_ports} ports, ppps]".encode()]
3028

3129
for idx in range(self.num_ports):
3230
if port_filter is not None and idx + 1 != int(port_filter):

uhubctl/usb.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,7 @@ def status(self) -> bool:
130130
Port power status
131131
"""
132132
status = None
133-
pattern = re.compile(
134-
rf" Port {self.port_number}: \d{{4}} (power|off|indicator)"
135-
)
133+
pattern = re.compile(rf" Port {self.port_number}: \d{{4}} (power|off|indicator)")
136134

137135
args = ["-l", self.hub.path, "-p", str(self.port_number)]
138136
for line in _uhubctl(args):

0 commit comments

Comments
 (0)