mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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
4
setup.py
4
setup.py
|
@ -186,7 +186,7 @@ def find_module_file(module, dirlist):
|
|||
if not list:
|
||||
return module
|
||||
if len(list) > 1:
|
||||
log.info("WARNING: multiple copies of %s found"%module)
|
||||
log.info("WARNING: multiple copies of %s found", module)
|
||||
return os.path.join(list[0], module)
|
||||
|
||||
class PyBuildExt(build_ext):
|
||||
|
@ -2213,7 +2213,7 @@ class PyBuildScripts(build_scripts):
|
|||
newfilename = filename + fullversion
|
||||
else:
|
||||
newfilename = filename + minoronly
|
||||
log.info('renaming {} to {}'.format(filename, newfilename))
|
||||
log.info('renaming %s to %s', filename, newfilename)
|
||||
os.rename(filename, newfilename)
|
||||
newoutfiles.append(newfilename)
|
||||
if filename in updated_files:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue