diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2017-10-11 11:54:42 -0700 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2017-10-11 11:54:42 -0700 |
commit | 75d7abb97608a5fad14aad1d85c421a7a713f6e9 (patch) | |
tree | 275ff93ccc386abc9782bb5abbf7468f73d63684 /paramiko | |
parent | eb6e3b0accfea1a794e57b01e12857b4c19b8dd3 (diff) | |
download | paramiko-75d7abb97608a5fad14aad1d85c421a7a713f6e9.tar.gz |
Reformatting/flake8
Diffstat (limited to 'paramiko')
-rw-r--r-- | paramiko/auth_handler.py | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/paramiko/auth_handler.py b/paramiko/auth_handler.py index ce75f23e..a1ce5e3b 100644 --- a/paramiko/auth_handler.py +++ b/paramiko/auth_handler.py @@ -591,19 +591,21 @@ Error Message: {} self._log(DEBUG, 'Methods: ' + str(authlist)) self.transport.saved_exception = PartialAuthentication(authlist) elif self.auth_method not in authlist: - self._log( - DEBUG, - 'Authentication type ({}) not permitted.'.format(self.auth_method) - ) - self._log( - DEBUG, - 'Allowed methods: ' + str(authlist)) + for msg in ( + 'Authentication type ({}) not permitted.'.format( + self.auth_method + ), + 'Allowed methods: {}'.format(authlist), + ): + self._log(DEBUG, msg) self.transport.saved_exception = BadAuthenticationType( - 'Bad authentication type', authlist) + 'Bad authentication type', authlist + ) else: self._log( INFO, - 'Authentication ({}) failed.'.format(self.auth_method)) + 'Authentication ({}) failed.'.format(self.auth_method) + ) self.authenticated = False self.username = None if self.auth_event is not None: |