From 175d6dbb992696e5b8db96ede33de5371d286f2d Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Fri, 22 Mar 2024 13:02:46 +0100 Subject: Python: Format and fix linting errors --- wrappers/python/eduvpn_common/event.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'wrappers/python/eduvpn_common/event.py') diff --git a/wrappers/python/eduvpn_common/event.py b/wrappers/python/eduvpn_common/event.py index efe3310..2eb528a 100644 --- a/wrappers/python/eduvpn_common/event.py +++ b/wrappers/python/eduvpn_common/event.py @@ -1,4 +1,3 @@ -from enum import IntEnum from typing import Any, Callable, Dict, List, Tuple from eduvpn_common.state import State, StateType @@ -41,7 +40,7 @@ class EventHandler(object): try: # Get the method method = getattr(cls, method_name) - except Exception as e: + except Exception: # Unable to get a value, go to the next continue @@ -81,9 +80,7 @@ class EventHandler(object): self.handlers[(state, state_type)] = [] self.handlers[(state, state_type)].append(func) - def run_state( - self, state: State, other_state: State, state_type: StateType, data: str - ) -> bool: + def run_state(self, state: State, other_state: State, state_type: StateType, data: str) -> bool: """The function that runs the callback for a specific event :param state: State: The state of the event :param other_state: State: The other state of the event -- cgit v1.2.3