Skip to content

Commit ce82968

Browse files
graingertgpshead
andauthored
Update Lib/multiprocessing/resource_tracker.py
Co-authored-by: Gregory P. Smith <[email protected]>
1 parent 52b2100 commit ce82968

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/multiprocessing/resource_tracker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def _write(self, msg):
253253
assert nbytes == len(msg), f"{nbytes=} != {len(msg)=}"
254254

255255
def _send(self, cmd, name, rtype):
256-
msg = '{0}:{1}:{2}\n'.format(cmd, name, rtype).encode('ascii')
256+
msg = f"{cmd}:{name}:{rtype}\n".encode("ascii")
257257
if len(msg) > 512:
258258
# posix guarantees that writes to a pipe of less than PIPE_BUF
259259
# bytes are atomic, and that PIPE_BUF >= 512

0 commit comments

Comments
 (0)