@@ -686,7 +686,8 @@ async def _request_authentication(self):
686
686
auth_plugin = self ._server_auth_plugin
687
687
688
688
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 )
690
691
elif auth_plugin in ('' , 'mysql_clear_password' ):
691
692
authresp = self ._password .encode ('latin1' ) + b'\0 '
692
693
@@ -730,7 +731,8 @@ async def _request_authentication(self):
730
731
plugin_name , auth_packet )
731
732
else :
732
733
# 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 '
734
736
self .write_packet (data )
735
737
auth_packet = await self ._read_packet ()
736
738
@@ -739,11 +741,13 @@ async def _process_auth(self, plugin_name, auth_packet):
739
741
# https://dev.mysql.com/doc/internals/en/
740
742
# secure-password-authentication.html#packet-Authentication::
741
743
# 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 ())
743
746
elif plugin_name == b"mysql_old_password" :
744
747
# https://dev.mysql.com/doc/internals/en/
745
748
# 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 '
747
751
elif plugin_name == b"mysql_clear_password" :
748
752
# https://dev.mysql.com/doc/internals/en/
749
753
# clear-text-authentication.html
0 commit comments