@@ -296,7 +296,7 @@ async def _connect(self):
296296 except Exception as exc : # pylint: disable=broad-except
297297 txt = f"Failed to connect: { exc } "
298298 _logger .warning (txt )
299- asyncio .ensure_future (self ._reconnect (), loop = self . loop )
299+ asyncio .ensure_future (self ._reconnect ())
300300 else :
301301 txt = f"Connected to { self .host } :{ self .port } ."
302302 _logger .info (txt )
@@ -324,7 +324,7 @@ def protocol_lost_connection(self, protocol):
324324 self .connected = False
325325 self .protocol = None
326326 if self .host :
327- asyncio .ensure_future (self ._reconnect (), loop = self . loop )
327+ asyncio .ensure_future (self ._reconnect ())
328328 else :
329329 _logger .error (TEST_FACTORY )
330330
@@ -384,7 +384,7 @@ async def connect(self):
384384 except Exception as exc : # pylint: disable=broad-except
385385 txt = f"Failed to connect: { exc } "
386386 _logger .warning (txt )
387- # asyncio.asynchronous(self._reconnect(), loop=self.loop )
387+ # asyncio.asynchronous(self._reconnect())
388388
389389 def protocol_made_connection (self , protocol ):
390390 """Notify successful connection."""
@@ -408,7 +408,7 @@ def protocol_lost_connection(self, protocol):
408408 self .connected = False
409409 self .protocol = None
410410 # if self.host:
411- # asyncio.asynchronous(self._reconnect(), loop=self.loop )
411+ # asyncio.asynchronous(self._reconnect())
412412 else :
413413 _logger .error (TEST_FACTORY )
414414
@@ -464,7 +464,7 @@ async def _connect(self):
464464 except Exception as exc : # pylint: disable=broad-except
465465 txt = f"Failed to connect: { exc } "
466466 _logger .warning (txt )
467- asyncio .ensure_future (self ._reconnect (), loop = self . loop )
467+ asyncio .ensure_future (self ._reconnect ())
468468 else :
469469 txt = f"Connected to { self .host } :{ self .port } ."
470470 _logger .info (txt )
@@ -564,7 +564,7 @@ async def _connect(self):
564564 except Exception as exc : # pylint: disable=broad-except
565565 txt = f"Failed to connect: { exc } "
566566 _logger .warning (txt )
567- asyncio .ensure_future (self ._reconnect (), loop = self . loop )
567+ asyncio .ensure_future (self ._reconnect ())
568568
569569 def protocol_made_connection (self , protocol ):
570570 """Notify successful connection."""
@@ -658,7 +658,7 @@ async def connect(self):
658658 except Exception as exc : # pylint: disable=broad-except
659659 txt = f"Failed to connect: { exc } "
660660 _logger .warning (txt )
661- # asyncio.asynchronous(self._reconnect(), loop=self.loop )
661+ # asyncio.asynchronous(self._reconnect())
662662
663663 def protocol_made_connection (self , protocol ):
664664 """Protocol notification of successful connection."""
@@ -682,7 +682,7 @@ def protocol_lost_connection(self, protocol):
682682 self .connected = False
683683 self .protocol = None
684684 # if self.host:
685- # asyncio.asynchronous(self._reconnect(), loop=self.loop )
685+ # asyncio.asynchronous(self._reconnect())
686686 else :
687687 _logger .error (TEST_FACTORY )
688688
@@ -784,7 +784,7 @@ def protocol_lost_connection(self, protocol):
784784 self ._connected_event .clear ()
785785 self .protocol = None
786786 # if self.host:
787- # asyncio.asynchronous(self._reconnect(), loop=self.loop )
787+ # asyncio.asynchronous(self._reconnect())
788788 else :
789789 _logger .error (TEST_FACTORY )
790790
0 commit comments