From: Éric Araujo Date: Fri, 19 Aug 2011 00:55:11 +0000 (+0200) Subject: Make logging call lazy X-Git-Tag: v3.2.3rc1~641^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=43a7ee1f3b478e4b2220bb5217c70d1b08e9d344;p=thirdparty%2FPython%2Fcpython.git Make logging call lazy --- diff --git a/Lib/shutil.py b/Lib/shutil.py index d2e2dc52fc9c..7789cec2fb47 100644 --- a/Lib/shutil.py +++ b/Lib/shutil.py @@ -398,7 +398,7 @@ def _make_tarball(base_name, base_dir, compress="gzip", verbose=0, dry_run=0, if not os.path.exists(archive_dir): if logger is not None: - logger.info("creating %s" % archive_dir) + logger.info("creating %s", archive_dir) if not dry_run: os.makedirs(archive_dir)