Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Silbe <sascha-pgp@silbe.org>2010-10-16 11:20:42 (GMT)
committer Sascha Silbe <sascha-pgp@silbe.org>2010-11-23 17:49:39 (GMT)
commitdb788833e5e6c205e62bd31d150c3c937f31205a (patch)
tree9a01612b7dbe569ca28f7894d8099bad2a941160
parentdb232a6076ff07af41c1e40efe1d6bc4dbc6deb3 (diff)
sugar.mime: ignore incorrect pylint warning
pylint isn't smart enough to analyse the contents of gio, so squelch the warning. Reviewed-by: James Cameron <quozl@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
-rw-r--r--src/sugar/mime.py1
1 files changed, 1 insertions, 0 deletions
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)