[Sugar-devel] [PATCH 21/21 sugar-toolkit] bundlebuilder: ignore incorrect pylint warning

Sascha Silbe sascha-pgp at silbe.org
Fri Oct 15 17:01:25 EDT 2010


pylint isn't smart enough to figure out the return type of Popen.communicate(),
so squelch the warning.

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

diff --git a/src/sugar/activity/bundlebuilder.py b/src/sugar/activity/bundlebuilder.py
index 1d7b613..60721d3 100644
--- a/src/sugar/activity/bundlebuilder.py
+++ b/src/sugar/activity/bundlebuilder.py
@@ -228,6 +228,7 @@ class SourcePackager(Packager):
             return list_files(self.config.source_dir,
                               IGNORE_DIRS, IGNORE_FILES)

+        # pylint: disable=E1103
         return [path.strip() for path in stdout.strip('\n').split('\n')]

     def package(self):
--
1.7.1



More information about the Sugar-devel mailing list