diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2018-09-18 20:02:10 -0700 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2018-09-18 20:02:10 -0700 |
commit | 8916b5d8030d48dc9da005df801f3417bc16d39a (patch) | |
tree | 616d883ea50ed78e0de3ddf7d4c516bc944055e7 | |
parent | 6a3c145814d9a45e4865441de46d29ae9273334c (diff) | |
parent | 6f2d06cba1ef334072430d6269f5229a32a148e0 (diff) |
Merge branch '2.2' into 2.3
-rw-r--r-- | paramiko/transport.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/paramiko/transport.py b/paramiko/transport.py index 7f3c79d5..475fdfb3 100644 --- a/paramiko/transport.py +++ b/paramiko/transport.py @@ -2030,12 +2030,10 @@ class Transport(threading.Thread, ClosingContextManager): # itself literally MSG_UNIMPLEMENTED, in which case, we # just shut up to avoid causing a useless loop). name = MSG_NAMES[ptype] - self._log( - WARNING, - "Oops, unhandled type {} ({!r})".format( - ptype, name - ), + warning = "Oops, unhandled type {} ({!r})".format( + ptype, name ) + self._log(WARNING, warning) if ptype != MSG_UNIMPLEMENTED: msg = Message() msg.add_byte(cMSG_UNIMPLEMENTED) |