From 65dffc1f09af640417727d5d346e08edc6c2772e Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Thu, 7 Jul 2022 16:33:38 +0200 Subject: Format: Run black --- wrappers/python/src/__init__.py | 5 ++++- wrappers/python/src/main.py | 9 +++------ 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'wrappers/python') diff --git a/wrappers/python/src/__init__.py b/wrappers/python/src/__init__.py index 22d5406..aea311d 100644 --- a/wrappers/python/src/__init__.py +++ b/wrappers/python/src/__init__.py @@ -75,7 +75,10 @@ lib.GetOrganizationsList.argtypes, lib.GetOrganizationsList.restype = [ lib.GetServersList.argtypes, lib.GetServersList.restype = [c_char_p], DataError lib.CancelOAuth.argtypes, lib.CancelOAuth.restype = [c_char_p], c_void_p lib.SetProfileID.argtypes, lib.SetProfileID.restype = [c_char_p, c_char_p], c_void_p -lib.SetSecureLocation.argtypes, lib.SetSecureLocation.restype = [c_char_p, c_char_p], c_void_p +lib.SetSecureLocation.argtypes, lib.SetSecureLocation.restype = [ + c_char_p, + c_char_p, +], c_void_p lib.SetConnected.argtypes, lib.SetConnected.restype = [c_char_p], c_void_p lib.SetDisconnected.argtypes, lib.SetDisconnected.restype = [c_char_p], c_void_p lib.GetIdentifier.argtypes, lib.GetIdentifier.restype = [c_char_p], DataError diff --git a/wrappers/python/src/main.py b/wrappers/python/src/main.py index 542fc54..3707d16 100644 --- a/wrappers/python/src/main.py +++ b/wrappers/python/src/main.py @@ -14,6 +14,7 @@ def add_as_global_object(eduvpn) -> bool: return True return False + def remove_as_global_object(eduvpn): global eduvpn_objects eduvpn_objects.pop(eduvpn.name, None) @@ -96,17 +97,13 @@ class EduVPN(object): return organizations - def get_config( - self, url: str, func: callable, force_tcp: bool = False - ): + def get_config(self, url: str, func: callable, force_tcp: bool = False): # Because it could be the case that a profile callback is started, store a threading event # In the constructor, we have defined a wait event for Ask_Profile, this waits for this event to be set # The event is set in self.set_profile self.profile_event = threading.Event() - config, config_type, config_err = self.go_function( - func, url, force_tcp - ) + config, config_type, config_err = self.go_function(func, url, force_tcp) self.profile_event = None self.location_event = None -- cgit v1.2.3