From e993a986388b0ec44b109a03edd34937a51aa9a1 Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Mon, 16 Jan 2023 19:03:36 -0500 Subject: s/%/fstrings/g Except in one spot where it was too complicated to bother for now XD --- tests/test_kex_gss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_kex_gss.py') diff --git a/tests/test_kex_gss.py b/tests/test_kex_gss.py index 26659ae3..d4868f4a 100644 --- a/tests/test_kex_gss.py +++ b/tests/test_kex_gss.py @@ -101,7 +101,7 @@ class GSSKexTest(KerberosTestCase): self.tc = paramiko.SSHClient() self.tc.get_host_keys().add( - "[%s]:%d" % (self.hostname, self.port), "ssh-rsa", public_host_key + f"[{self.hostname}]:{self.port}", "ssh-rsa", public_host_key ) self.tc.connect( self.hostname, -- cgit v1.2.3