summaryrefslogtreecommitdiffstats
path: root/Doc/library/shutil.rst
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2016-08-31 07:22:29 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2016-08-31 07:22:29 (GMT)
commitdd917f84e3775596049e09746f32053c50b3d422 (patch)
tree5b59a563c228493069bcf00e166fba7cea8ebfef /Doc/library/shutil.rst
parentee47e5cf8ad0e52e2c5291662b9b15c2ba8848ea (diff)
downloadcpython-dd917f84e3775596049e09746f32053c50b3d422.zip
cpython-dd917f84e3775596049e09746f32053c50b3d422.tar.gz
cpython-dd917f84e3775596049e09746f32053c50b3d422.tar.bz2
Closes #27904: Improved logging statements to defer formatting until needed.
Diffstat (limited to 'Doc/library/shutil.rst')
-rw-r--r--Doc/library/shutil.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst
index a1cf241..fefd6ab 100644
--- a/Doc/library/shutil.rst
+++ b/Doc/library/shutil.rst
@@ -425,7 +425,7 @@ Another example that uses the *ignore* argument to add a logging call::
import logging
def _logpath(path, names):
- logging.info('Working in %s' % path)
+ logging.info('Working in %s', path)
return [] # nothing will be ignored
copytree(source, destination, ignore=_logpath)