summaryrefslogtreecommitdiff
path: root/wrappers/python/eduvpn_common/server.py
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-10-14 15:08:37 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-10-14 15:16:04 +0200
commit5137d7ea3bf3356f917f6ccf44610cc23ea6492b (patch)
tree2785f098bc0b390f307e1bd9f48901eb251ed491 /wrappers/python/eduvpn_common/server.py
parentad01ccf4e59f632ead507646b10310e794b8f0c0 (diff)
Python: Run black
Diffstat (limited to 'wrappers/python/eduvpn_common/server.py')
-rw-r--r--wrappers/python/eduvpn_common/server.py21
1 files changed, 17 insertions, 4 deletions
diff --git a/wrappers/python/eduvpn_common/server.py b/wrappers/python/eduvpn_common/server.py
index 8dac3c1..eafb334 100644
--- a/wrappers/python/eduvpn_common/server.py
+++ b/wrappers/python/eduvpn_common/server.py
@@ -2,8 +2,7 @@ from ctypes import CDLL, POINTER, c_void_p, cast
from datetime import datetime
from typing import List, Optional, Type
-from eduvpn_common.types import (cServer, cServerLocations, cServerProfiles,
- cServers)
+from eduvpn_common.types import cServer, cServerLocations, cServerProfiles, cServers
class Profile:
@@ -29,7 +28,13 @@ class Profiles:
class Server:
- def __init__(self, url: str, display_name: str, profiles: Optional[Profiles] = None, expire_time: int = 0):
+ def __init__(
+ self,
+ url: str,
+ display_name: str,
+ profiles: Optional[Profiles] = None,
+ expire_time: int = 0,
+ ):
self.url = url
self.display_name = display_name
self.profiles = profiles
@@ -44,7 +49,14 @@ class Server:
class InstituteServer(Server):
- def __init__(self, url: str, display_name: str, support_contact: List[str], profiles: Profiles, expire_time: int):
+ def __init__(
+ self,
+ url: str,
+ display_name: str,
+ support_contact: List[str],
+ profiles: Profiles,
+ expire_time: int,
+ ):
super().__init__(url, display_name, profiles, expire_time)
self.support_contact = support_contact
@@ -52,6 +64,7 @@ class InstituteServer(Server):
def category(self) -> str:
return "Institute Access Server"
+
class SecureInternetServer(Server):
def __init__(
self,