diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-07-07 16:33:38 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-07-07 16:33:38 +0200 |
| commit | 65dffc1f09af640417727d5d346e08edc6c2772e (patch) | |
| tree | 7c2e3593dc049c9a344451aec658cb7a4776a7f3 /wrappers/python/src/main.py | |
| parent | c67b8f64438d439d52a9e4955ff1bdf30363dbb1 (diff) | |
Format: Run black
Diffstat (limited to 'wrappers/python/src/main.py')
| -rw-r--r-- | wrappers/python/src/main.py | 9 |
1 files changed, 3 insertions, 6 deletions
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 |
