Skip to content

Commit

Permalink
Merge pull request #85 from ploxiln/py2_userauth_nonascii
Browse files Browse the repository at this point in the history
fix non-ascii usernames in _parse_userauth_request() for python2
  • Loading branch information
ploxiln authored Jul 26, 2020
2 parents 8efe446 + 2cafd9d commit 30526d8
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions paramiko/auth_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,12 +418,9 @@ def _parse_userauth_request(self, m):
username = m.get_text()
service = m.get_text()
method = m.get_text()
self._log(
DEBUG,
'Auth request (type={}) service={}, username={}'.format(
method, service, username
)
)
self._log(DEBUG, "Auth request (type={!r}) service={!r}, username={!r}".format(
method, service, username
))
if service != 'ssh-connection':
self._disconnect_service_not_available()
return
Expand Down

0 comments on commit 30526d8

Please sign in to comment.