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()
|
pm = PlatformManager()
|
||||||
return pm.get_installed_boards() if installed else pm.get_all_boards()
|
return pm.get_installed_boards() if installed else pm.get_all_boards()
|
||||||
|
|
||||||
|
|
||||||
def _print_boards_json(query, installed=False):
|
def _print_boards_json(query, installed=False):
|
||||||
result = []
|
result = []
|
||||||
for board in _get_boards(installed):
|
for board in _get_boards(installed):
|
||||||
|
@ -30,7 +30,7 @@ from platformio.downloader import FileDownloader
|
|||||||
from platformio.unpacker import FileUnpacker
|
from platformio.unpacker import FileUnpacker
|
||||||
from platformio.vcsclient import VCSClientFactory
|
from platformio.vcsclient import VCSClientFactory
|
||||||
|
|
||||||
# pylint: disable=too-many-arguments
|
# pylint: disable=too-many-arguments, too-many-return-statements
|
||||||
|
|
||||||
|
|
||||||
class PackageRepoIterator(object):
|
class PackageRepoIterator(object):
|
||||||
@ -690,11 +690,7 @@ class BasePkgManager(PkgRepoMixin, PkgInstallerMixin):
|
|||||||
label=manifest['name'])
|
label=manifest['name'])
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def update( # pylint: disable=too-many-return-statements
|
def update(self, package, requirements=None, only_check=False):
|
||||||
self,
|
|
||||||
package,
|
|
||||||
requirements=None,
|
|
||||||
only_check=False):
|
|
||||||
if isdir(package):
|
if isdir(package):
|
||||||
pkg_dir = package
|
pkg_dir = package
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user