SIGN IN SIGN UP

bpo-38693: Use f-strings instead of str.format() within importlib (#17058)

This is a small performance improvement, especially for one or two hot
places such as _handle_fromlist() that are called a lot and the
.format() method was being used just to join two strings with a dot.

Otherwise it is merely a readability improvement.

We keep `_ERR_MSG` and `_ERR_MSG_PREFIX` as those may be used elsewhere for canonical looking error messages.
G
Gregory P. Smith committed
683ab859554c34831fcecc854de35745d7fd603c
Parent: 21a2d9f
Committed by GitHub <noreply@github.com> on 10/6/2022, 11:43:16 PM