From fd98aa0ff8e821ce7735d3747a2cfdd2392c72f1 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Wed, 6 Sep 2017 20:57:56 +0300 Subject: [PATCH] Fix PyLint warning --- docs | 2 +- platformio/commands/boards.py | 1 + platformio/managers/package.py | 8 ++------ 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/docs b/docs index cdfe3014..e676def2 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit cdfe301454c318ce79a157d7bb4f8bf5c140ab26 +Subproject commit e676def2230a7a40fdf6865530798e279e906f96 diff --git a/platformio/commands/boards.py b/platformio/commands/boards.py index 7e7836d6..522a8a47 100644 --- a/platformio/commands/boards.py +++ b/platformio/commands/boards.py @@ -82,6 +82,7 @@ def _get_boards(installed=False): pm = PlatformManager() return pm.get_installed_boards() if installed else pm.get_all_boards() + def _print_boards_json(query, installed=False): result = [] for board in _get_boards(installed): diff --git a/platformio/managers/package.py b/platformio/managers/package.py index d66cb1f9..7d1f9216 100644 --- a/platformio/managers/package.py +++ b/platformio/managers/package.py @@ -30,7 +30,7 @@ from platformio.downloader import FileDownloader from platformio.unpacker import FileUnpacker from platformio.vcsclient import VCSClientFactory -# pylint: disable=too-many-arguments +# pylint: disable=too-many-arguments, too-many-return-statements class PackageRepoIterator(object): @@ -690,11 +690,7 @@ class BasePkgManager(PkgRepoMixin, PkgInstallerMixin): label=manifest['name']) return True - def update( # pylint: disable=too-many-return-statements - self, - package, - requirements=None, - only_check=False): + def update(self, package, requirements=None, only_check=False): if isdir(package): pkg_dir = package else: