[Sugar-devel] [PATCH sugar-base 17/17] sugar.mime: ignore incorrect pylint warning

Sascha Silbe sascha-pgp at silbe.org
Sat Oct 16 07:30:30 EDT 2010


pylint isn't smart enough to analyse the contents of gio, so squelch the
warning.

Signed-off-by: Sascha Silbe <sascha-pgp at silbe.org>

diff --git a/src/sugar/mime.py b/src/sugar/mime.py
index 7f3f5ff..c4b847b 100644
--- a/src/sugar/mime.py
+++ b/src/sugar/mime.py
@@ -134,6 +134,7 @@ def get_mime_description(mime_type):
         return generic_type['name']
 
     import gio
+    # pylint: disable=E1101
     return gio.content_type_get_description(mime_type)
 
 
-- 
1.7.1



More information about the Sugar-devel mailing list