mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-31 18:11:54 +08:00
Remove all uses of assignment expressions.
This is needed to port to Python 3.7 because Raspbian 10 doesn't have Python 3.8. Signed-off-by: Oleg Girko <ol@infoserver.lv>
This commit is contained in:
@@ -239,7 +239,8 @@ class _Client(RfbClient): # pylint: disable=too-many-instance-attributes
|
||||
|
||||
async def _on_key_event(self, code: int, state: bool) -> None:
|
||||
if self.__kvmd_ws:
|
||||
if (web_key := self.__symmap.get(code)) is not None:
|
||||
web_key = self.__symmap.get(code)
|
||||
if web_key is not None:
|
||||
await self.__kvmd_ws.send_key_event(web_key.name, state)
|
||||
|
||||
async def _on_pointer_event(self, buttons: Dict[str, bool], wheel: Dict[str, int], move: Dict[str, int]) -> None:
|
||||
|
||||
Reference in New Issue
Block a user