@@ -270,6 +270,7 @@ def _create_protocol(self):
270270 return protocol
271271
272272 async def _connect (self ):
273+ """ Internal connect. """
273274 _logger .debug ('Connecting.' )
274275 try :
275276 transport , protocol = await self .loop .create_connection (
@@ -311,6 +312,7 @@ def protocol_lost_connection(self, protocol):
311312
312313
313314 async def _reconnect (self ):
315+ """ Internal reconnect. """
314316 txt = f"Waiting { self .delay_ms } ms before next connection attempt."
315317 _logger .debug (txt )
316318 await asyncio .sleep (self .delay_ms / 1000 )
@@ -528,6 +530,7 @@ def _create_protocol(self, host=None, port=0):
528530
529531
530532 async def _connect (self ):
533+ """ Internal connect. """
531534 _logger .debug ('Connecting.' )
532535 try :
533536 endpoint = await self .loop .create_datagram_endpoint (
@@ -571,6 +574,7 @@ def protocol_lost_connection(self, protocol):
571574 'callback called while not connected.' )
572575
573576 async def _reconnect (self ):
577+ """ Internal reconnect. """
574578 txt = f"Waiting { self .delay_ms } ms before next connection attempt."
575579 _logger .debug (txt )
576580 await asyncio .sleep (self .delay_ms / 1000 )
@@ -705,12 +709,14 @@ def stop(self):
705709 self .protocol .transport .close ()
706710
707711 def _create_protocol (self ):
712+ """ Internal create protocol. """
708713 protocol = self .protocol_class (framer = self .framer )
709714 protocol .factory = self
710715 return protocol
711716
712717 @property
713718 def _connected (self ):
719+ """ Internal connected. """
714720 return self ._connected_event .is_set ()
715721
716722 async def connect (self ):
0 commit comments