Skip to content

Commit 987deb9

Browse files
committed
lint: UP031 Use format specifiers instead of percent format
1 parent c5a3933 commit 987deb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python_files/visualstudio_py_testlauncher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def send_event(self, name, **args):
130130
body = {"type": "event", "seq": self.seq, "event": name, "body": args}
131131
self.seq += 1
132132
content = json.dumps(body).encode("utf8")
133-
headers = ("Content-Length: %d\n\n" % (len(content),)).encode("utf8")
133+
headers = f"Content-Length: {len(content)}\n\n".encode()
134134
self.socket.send(headers)
135135
self.socket.send(content)
136136

0 commit comments

Comments
 (0)