forked from platformio/platformio-core
Fix PyLint warning
This commit is contained in:
2
docs
2
docs
Submodule docs updated: cdfe301454...e676def223
@ -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):
|
||||
|
@ -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:
|
||||
|
Reference in New Issue
Block a user