summaryrefslogtreecommitdiff
path: root/wrappers
diff options
context:
space:
mode:
authorJeroen Wijenbergh <jeroen.wijenbergh@geant.org>2025-03-21 14:39:11 +0100
committerJeroen Wijenbergh <jeroen.wijenbergh@geant.org>2025-03-21 14:39:11 +0100
commitf0937ae13c2475112687e7a61dae45fc31c79bc4 (patch)
treeaf608e57bb32e5651d6fa328284cf48d310b417a /wrappers
parent6a3fffce55ebf1fcc6171e49187aaacb4286c6ed (diff)
Format: Run Ruff
Diffstat (limited to 'wrappers')
-rw-r--r--wrappers/python/example/main.py8
1 files changed, 4 insertions, 4 deletions
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