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

Simon Schampijer simon at schampijer.de
Fri Oct 29 07:03:04 EDT 2010


Reviewed-by: Simon Schampijer simon at laptop.org

On 10/15/2010 11:01 PM, Sascha Silbe wrote:
> 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
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>



More information about the Sugar-devel mailing list