From f0937ae13c2475112687e7a61dae45fc31c79bc4 Mon Sep 17 00:00:00 2001 From: Jeroen Wijenbergh Date: Fri, 21 Mar 2025 14:39:11 +0100 Subject: Format: Run Ruff --- wrappers/python/example/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'wrappers/python/example') diff --git a/wrappers/python/example/main.py b/wrappers/python/example/main.py index 8008592..44bbbe8 100644 --- a/wrappers/python/example/main.py +++ b/wrappers/python/example/main.py @@ -36,7 +36,7 @@ def setup_callbacks(edu: eduvpn.EduVPN): def enter_ask_profile(old_state: State, profiles: Profiles): print("This server has multiple available profiles") for index, profile in enumerate(profiles.profiles): - print(f"[{index+1}]: {profile}") + print(f"[{index + 1}]: {profile}") index = ask_ranged_input(len(profiles.profiles), "profile") _eduvpn.set_profile(profiles.profiles[index].identifier) @@ -44,7 +44,7 @@ def setup_callbacks(edu: eduvpn.EduVPN): def enter_ask_location(old_state: State, locations: List[str]): print("This server has multiple available locations") for index, location in enumerate(locations): - print(f"[{index+1}]: {location}") + print(f"[{index + 1}]: {location}") index = ask_ranged_input(len(locations), "location") _eduvpn.set_secure_location(locations[index]) @@ -64,7 +64,7 @@ def do_institute_access(edu: eduvpn.EduVPN) -> Optional[Config]: institute_servers = [] for disco_server in sorted(disco_servers.servers, key=lambda x: str(x)): if disco_server.server_type == "institute_access": - print(f"[{index+1}]: {disco_server}") + print(f"[{index + 1}]: {disco_server}") institute_servers.append(disco_server) index += 1 @@ -82,7 +82,7 @@ def do_secure_internet(edu: eduvpn.EduVPN) -> Optional[Config]: index = 0 secure_internet_servers = [] for disco_org in sorted(disco_orgs.organizations, key=lambda x: str(x)): - print(f"[{index+1}]: {disco_org}") + print(f"[{index + 1}]: {disco_org}") secure_internet_servers.append(disco_org) index += 1 -- cgit v1.2.3