summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2018-09-18 20:02:10 -0700
committerJeff Forcier <jeff@bitprophet.org>2018-09-18 20:02:10 -0700
commit6f2d06cba1ef334072430d6269f5229a32a148e0 (patch)
treed7b7d0dcbc92e03006369754325d990fc207d15f
parent8346db322861778f2f50ecdc16f4c444eee53a8b (diff)
parentef900b70c136cf8a25c2105aba09a5d79c4686cb (diff)
Merge branch '2.1' into 2.2
-rw-r--r--paramiko/transport.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/paramiko/transport.py b/paramiko/transport.py
index 4d8fd6bc..08066901 100644
--- a/paramiko/transport.py
+++ b/paramiko/transport.py
@@ -1984,12 +1984,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)