Fix PyLint warning

This commit is contained in:
Ivan Kravets
2017-09-06 20:57:56 +03:00
parent f24e97e933
commit fd98aa0ff8
3 changed files with 4 additions and 7 deletions

2
docs

Submodule docs updated: cdfe301454...e676def223

View File

@ -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):

View File

@ -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: