Skip to content

Commit 52b2100

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

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/multiprocessing/resource_tracker.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,7 @@ def unregister(self, name, rtype):
250250

251251
def _write(self, msg):
252252
nbytes = os.write(self._fd, msg)
253-
assert nbytes == len(msg), "nbytes {0:n} but len(msg) {1:n}".format(
254-
nbytes, len(msg))
253+
assert nbytes == len(msg), f"{nbytes=} != {len(msg)=}"
255254

256255
def _send(self, cmd, name, rtype):
257256
msg = '{0}:{1}:{2}\n'.format(cmd, name, rtype).encode('ascii')

0 commit comments

Comments
 (0)