diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-09-27 11:43:14 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-09-27 12:38:20 -0400 |
commit | 8d5a9143bb550966c0b43ee4624c49bfaaa55a8c (patch) | |
tree | 96ba26d0673d364f89b4148a232f22855eba70fc /klippy/chelper.py | |
parent | 8f8951b4c1caf9bf5667a22b146ba22d184208e1 (diff) | |
download | kutter-8d5a9143bb550966c0b43ee4624c49bfaaa55a8c.tar.gz kutter-8d5a9143bb550966c0b43ee4624c49bfaaa55a8c.tar.xz kutter-8d5a9143bb550966c0b43ee4624c49bfaaa55a8c.zip |
klippy: Avoid using '%' syntax when calling logging module
The logging module can build strings directly from printf syntax - no
need to build the string first.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/chelper.py')
-rw-r--r-- | klippy/chelper.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/chelper.py b/klippy/chelper.py index 1f09e72d..7d950ab8 100644 --- a/klippy/chelper.py +++ b/klippy/chelper.py @@ -90,7 +90,7 @@ def check_build_code(srcdir, target, sources, cmd, other_files=[]): src_times = get_mtimes(srcdir, sources + other_files) obj_times = get_mtimes(srcdir, [target]) if not obj_times or max(src_times) > min(obj_times): - logging.info("Building C code module %s" % (target,)) + logging.info("Building C code module %s", target) srcfiles = [os.path.join(srcdir, fname) for fname in sources] destlib = os.path.join(srcdir, target) os.system(cmd % (destlib, ' '.join(srcfiles))) |