From 2212039d70ce5c4e97c3943bb82d4231c10e1260 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Wed, 25 Nov 2015 19:29:18 +0100 Subject: Make the logging more pep-282 compliant See https://www.python.org/dev/peps/pep-0282/ for details, but basically this is commit leaves the string replacement to the logging function, instead of doing it in place in its parameters with the '%' operator. --- nautilus/nautilus-mat.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nautilus') diff --git a/nautilus/nautilus-mat.py b/nautilus/nautilus-mat.py index 11a47f3..cdce947 100644 --- a/nautilus/nautilus-mat.py +++ b/nautilus/nautilus-mat.py @@ -36,17 +36,17 @@ class MatExtension(GObject.GObject, Nautilus.MenuProvider): # We're only going to put ourselves on supported mimetypes' context menus if not (file.get_mime_type() in [i["mimetype"] for i in libmat.mat.list_supported_formats()]): - logging.debug("%s is not supported by MAT" % file.get_mime_type()) + logging.debug("%s is not supported by MAT", file.get_mime_type()) return # MAT can only handle local file: if file.get_uri_scheme() != 'file': - logging.debug("%s files not supported by MAT" % file.get_uri_scheme()) + logging.debug("%s files not supported by MAT", file.get_uri_scheme()) return # MAT can not clean non-writable files if not file.can_write(): - logging.debug("%s is not writable by MAT" % file.get_uri_scheme()) + logging.debug("%s is not writable by MAT", file.get_uri_scheme()) return item = Nautilus.MenuItem(name="Nautilus::clean_metadata", -- cgit v1.3