mirror of
https://github.com/python/cpython.git
synced 2025-07-24 19:54:21 +00:00
Closes #27904: Improved logging statements to defer formatting until needed.
This commit is contained in:
parent
ee47e5cf8a
commit
dd917f84e3
15 changed files with 25 additions and 26 deletions
|
@ -337,7 +337,7 @@ def dump_file(filename, head=None):
|
|||
If head is not None, will be dumped before the file content.
|
||||
"""
|
||||
if head is None:
|
||||
log.info('%s' % filename)
|
||||
log.info('%s', filename)
|
||||
else:
|
||||
log.info(head)
|
||||
file = open(filename)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue