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 | ef900b70c136cf8a25c2105aba09a5d79c4686cb (patch) | |
tree | 3b56d0e117ccd51977751890806cc1a53a55f7cc | |
parent | 3ae4971b5f85144ef5899c3d1fb0a4c1b350ee3e (diff) | |
parent | e6f98425994536ea82b558d0aea19562f68b5437 (diff) |
Merge branch '2.0' into 2.1
-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 6500d8ca..6465a784 100644 --- a/paramiko/transport.py +++ b/paramiko/transport.py @@ -1972,12 +1972,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) |