refactoring

This commit is contained in:
Maxim Devaev
2023-03-07 23:54:05 +02:00
parent 002031baf1
commit f652eca9c2
15 changed files with 49 additions and 49 deletions

View File

@@ -172,8 +172,8 @@ class BaseDeviceProcess(multiprocessing.Process): # pylint: disable=too-many-in
return get_logger()
def __is_udc_configured(self) -> bool:
with open(self.__udc_state_path) as udc_state_file:
return (udc_state_file.read().strip().lower() == "configured")
with open(self.__udc_state_path) as file:
return (file.read().strip().lower() == "configured")
def __write_report(self, report: bytes) -> bool:
assert report