mirror of
https://github.com/python/cpython.git
synced 2025-08-10 03:49:18 +00:00
[3.12] Add the missing f
on an f-string error message in multiprocessing. (GH-127462) (#127465)
Add the missing `f` on an f-string error message in multiprocessing. (GH-127462)
(cherry picked from commit 11c01092d5
)
Co-authored-by: Gregory P. Smith <greg@krypto.org>
This commit is contained in:
parent
ea8a85bb9e
commit
f08c82ecad
1 changed files with 1 additions and 1 deletions
|
@ -956,7 +956,7 @@ def answer_challenge(connection, authkey: bytes):
|
|||
f'Protocol error, expected challenge: {message=}')
|
||||
message = message[len(_CHALLENGE):]
|
||||
if len(message) < _MD5ONLY_MESSAGE_LENGTH:
|
||||
raise AuthenticationError('challenge too short: {len(message)} bytes')
|
||||
raise AuthenticationError(f'challenge too short: {len(message)} bytes')
|
||||
digest = _create_response(authkey, message)
|
||||
connection.send_bytes(digest)
|
||||
response = connection.recv_bytes(256) # reject large message
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue