@@ -686,7 +686,8 @@ async def _request_authentication(self):
686686 auth_plugin = self ._server_auth_plugin
687687
688688 if auth_plugin in ('' , 'mysql_native_password' ):
689- authresp = _auth .scramble_native_password (self ._password , self .salt )
689+ authresp = _auth .scramble_native_password (self ._password ,
690+ self .salt )
690691 elif auth_plugin in ('' , 'mysql_clear_password' ):
691692 authresp = self ._password .encode ('latin1' ) + b'\0 '
692693
@@ -730,7 +731,8 @@ async def _request_authentication(self):
730731 plugin_name , auth_packet )
731732 else :
732733 # send legacy handshake
733- data = _auth .scramble_old_password (self ._password , auth_packet .read_all ()) + b'\0 '
734+ data = _auth .scramble_old_password (
735+ self ._password , auth_packet .read_all ()) + b'\0 '
734736 self .write_packet (data )
735737 auth_packet = await self ._read_packet ()
736738
@@ -739,11 +741,13 @@ async def _process_auth(self, plugin_name, auth_packet):
739741 # https://dev.mysql.com/doc/internals/en/
740742 # secure-password-authentication.html#packet-Authentication::
741743 # Native41
742- data = _auth .scramble_native_password (self ._password , auth_packet .read_all ())
744+ data = _auth .scramble_native_password (self ._password ,
745+ auth_packet .read_all ())
743746 elif plugin_name == b"mysql_old_password" :
744747 # https://dev.mysql.com/doc/internals/en/
745748 # old-password-authentication.html
746- data = _auth .scramble_old_password (self ._password , auth_packet .read_all ()) + b'\0 '
749+ data = _auth .scramble_old_password (self ._password ,
750+ auth_packet .read_all ()) + b'\0 '
747751 elif plugin_name == b"mysql_clear_password" :
748752 # https://dev.mysql.com/doc/internals/en/
749753 # clear-text-authentication.html
0 commit comments