From 4f4c48b9d53709ef87c42ae55a5aab1de8cae419 Mon Sep 17 00:00:00 2001 From: Dain Nilsson Date: Tue, 9 Nov 2021 09:16:49 +0100 Subject: [PATCH] Fix formatting (Black). --- fido2/hid/linux.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fido2/hid/linux.py b/fido2/hid/linux.py index c26e0a2..8b200f7 100644 --- a/fido2/hid/linux.py +++ b/fido2/hid/linux.py @@ -63,7 +63,9 @@ def get_descriptor(path): try: buf = array("B", [0] * 64) length = fcntl.ioctl(f, HIDIOCGRAWUNIQ, buf, True) - serial = bytearray(buf[: (length - 1)]).decode("utf-8") if length > 1 else None + serial = ( + bytearray(buf[: (length - 1)]).decode("utf-8") if length > 1 else None + ) except OSError: serial = None