summaryrefslogtreecommitdiff
path: root/paramiko/_winapi.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2023-01-16 19:03:36 -0500
committerJeff Forcier <jeff@bitprophet.org>2023-01-16 19:38:17 -0500
commite993a986388b0ec44b109a03edd34937a51aa9a1 (patch)
treec7d898b9f03d4365de8f247fd5eccead08a194f8 /paramiko/_winapi.py
parent078c4b0fd7753f31e2f9c0c37979920a5df33098 (diff)
downloadparamiko-e993a986388b0ec44b109a03edd34937a51aa9a1.tar.gz
s/%/fstrings/g
Except in one spot where it was too complicated to bother for now XD
Diffstat (limited to 'paramiko/_winapi.py')
-rw-r--r--paramiko/_winapi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/_winapi.py b/paramiko/_winapi.py
index ab2a71e6..96284b69 100644
--- a/paramiko/_winapi.py
+++ b/paramiko/_winapi.py
@@ -172,7 +172,7 @@ class MemoryMap(object):
assert isinstance(msg, bytes)
n = len(msg)
if self.pos + n >= self.length: # A little safety.
- raise ValueError("Refusing to write %d bytes" % n)
+ raise ValueError(f"Refusing to write {n} bytes")
dest = self.view + self.pos
length = ctypes.c_size_t(n)
ctypes.windll.kernel32.RtlMoveMemory(dest, msg, length)