Provide a blanket implementation for _init_conn

This commit is contained in:
Lonami Exo 2019-02-21 10:43:31 +01:00
parent 6de7329ce7
commit abadf3c789

View File

@ -173,7 +173,6 @@ class Connection(abc.ABC):
except asyncio.CancelledError: except asyncio.CancelledError:
break break
@abc.abstractmethod
def _init_conn(self): def _init_conn(self):
""" """
This method will be called after `connect` is called. This method will be called after `connect` is called.
@ -183,7 +182,6 @@ class Connection(abc.ABC):
data to Telegram to indicate which connection mode will data to Telegram to indicate which connection mode will
be used. be used.
""" """
raise NotImplemented
@abc.abstractmethod @abc.abstractmethod
def _send(self, data): def _send(self, data):