summaryrefslogtreecommitdiffstats
path: root/Python/asdl.c
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2022-10-06 23:43:16 (GMT)
committerGitHub <noreply@github.com>2022-10-06 23:43:16 (GMT)
commit683ab859554c34831fcecc854de35745d7fd603c (patch)
tree9327b84ceba87d1c8be5ada8ce7497489c14b444 /Python/asdl.c
parent21a2d9ff550977f2668e2cf1cc15793bf27fa109 (diff)
downloadcpython-683ab859554c34831fcecc854de35745d7fd603c.zip
cpython-683ab859554c34831fcecc854de35745d7fd603c.tar.gz
cpython-683ab859554c34831fcecc854de35745d7fd603c.tar.bz2
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.
Diffstat (limited to 'Python/asdl.c')
0 files changed, 0 insertions, 0 deletions