diff options
Diffstat (limited to 'nautilus')
| -rw-r--r-- | nautilus/nautilus-mat.py | 6 |
1 files changed, 3 insertions, 3 deletions
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): | |||
| 36 | # We're only going to put ourselves on supported mimetypes' context menus | 36 | # We're only going to put ourselves on supported mimetypes' context menus |
| 37 | if not (file.get_mime_type() | 37 | if not (file.get_mime_type() |
| 38 | in [i["mimetype"] for i in libmat.mat.list_supported_formats()]): | 38 | in [i["mimetype"] for i in libmat.mat.list_supported_formats()]): |
| 39 | logging.debug("%s is not supported by MAT" % file.get_mime_type()) | 39 | logging.debug("%s is not supported by MAT", file.get_mime_type()) |
| 40 | return | 40 | return |
| 41 | 41 | ||
| 42 | # MAT can only handle local file: | 42 | # MAT can only handle local file: |
| 43 | if file.get_uri_scheme() != 'file': | 43 | if file.get_uri_scheme() != 'file': |
| 44 | logging.debug("%s files not supported by MAT" % file.get_uri_scheme()) | 44 | logging.debug("%s files not supported by MAT", file.get_uri_scheme()) |
| 45 | return | 45 | return |
| 46 | 46 | ||
| 47 | # MAT can not clean non-writable files | 47 | # MAT can not clean non-writable files |
| 48 | if not file.can_write(): | 48 | if not file.can_write(): |
| 49 | logging.debug("%s is not writable by MAT" % file.get_uri_scheme()) | 49 | logging.debug("%s is not writable by MAT", file.get_uri_scheme()) |
| 50 | return | 50 | return |
| 51 | 51 | ||
| 52 | item = Nautilus.MenuItem(name="Nautilus::clean_metadata", | 52 | item = Nautilus.MenuItem(name="Nautilus::clean_metadata", |
