]> granicus.if.org Git - python/commitdiff
Make logging call lazy
authorÉric Araujo <merwok@netwok.org>
Fri, 19 Aug 2011 00:55:11 +0000 (02:55 +0200)
committerÉric Araujo <merwok@netwok.org>
Fri, 19 Aug 2011 00:55:11 +0000 (02:55 +0200)
Lib/shutil.py

index d2e2dc52fc9c8cbc59f7ef0fbfd2be1847150a4a..7789cec2fb47d31c46c468f0b5caef5bc60728d5 100644 (file)
@@ -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)