From a5ce12d4830e9d3661d1e4ccddef18e112386ee1 Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Tue, 18 Sep 2018 20:31:21 -0700 Subject: Fix a Python 2.6 oops --- paramiko/transport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paramiko/transport.py b/paramiko/transport.py index 82914559..04996a3d 100644 --- a/paramiko/transport.py +++ b/paramiko/transport.py @@ -1965,7 +1965,7 @@ 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] - warning = "Oops, unhandled type {} ({!r})".format( + warning = "Oops, unhandled type {0} ({1!r})".format( ptype, name ) self._log(WARNING, warning) -- cgit v1.2.3