Add missing connect abstractmethod

This commit is contained in:
Lonami Exo
2018-05-10 16:16:23 +02:00
parent ba4b7ce881
commit eb22bce2d9

View File

@@ -22,6 +22,10 @@ class Connection(abc.ABC):
self._proxy = proxy
self._timeout = timeout
@abc.abstractmethod
def connect(self, ip, port):
raise NotImplementedError
@abc.abstractmethod
def get_timeout(self):
"""Returns the timeout used by the connection."""