diff options
author | Maxim Devaev <[email protected]> | 2023-03-07 23:54:05 +0200 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2023-03-07 23:54:05 +0200 |
commit | f652eca9c213dd783cf2ffd02109b2353ccb86c1 (patch) | |
tree | 3c2a5c68e0b03536ec5c482b9b5be708795e8292 /kvmd/apps/otgnet | |
parent | 002031baf15d328dad764a620e1c83c01e7a55a6 (diff) |
refactoring
Diffstat (limited to 'kvmd/apps/otgnet')
-rw-r--r-- | kvmd/apps/otgnet/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/apps/otgnet/__init__.py b/kvmd/apps/otgnet/__init__.py index 98213346..a3d69216 100644 --- a/kvmd/apps/otgnet/__init__.py +++ b/kvmd/apps/otgnet/__init__.py @@ -174,8 +174,8 @@ class _Service: # pylint: disable=too-many-instance-attributes real_driver = "rndis" path = usb.get_gadget_path(self.__gadget, usb.G_FUNCTIONS, f"{real_driver}.usb0/ifname") logger.info("Using OTG gadget %r ...", self.__gadget) - with open(path) as iface_file: - iface = iface_file.read().strip() + with open(path) as file: + iface = file.read().strip() logger.info("Using OTG Ethernet interface %r ...", iface) assert iface return iface |