Fix some PyLint errors

This commit is contained in:
Ivan Kravets committed 2019-05-07 23:51:46 +03:00
1 parent 45d4b92678
commit 947e31ca8d
5 files changed
+14 -30

No files matched your search

+1 -2
View File
@@ -43,11 +43,10 @@ def cli(dev):
get_pip_package(to_develop)], ["platformio", "--version"])
cmd = None
r = None
r = {}
try:
for cmd in cmds:
cmd = [util.get_pythonexe_path(), "-m"] + cmd
r = None
r = util.exec_command(cmd)
# try pip with disabled cache
-2
View File
@@ -12,8 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# pylint: disable=not-an-iterable
class PlatformioException(Exception):
+1 -1
View File
@@ -164,7 +164,7 @@ class LibraryManager(BasePkgManager):
semver_spec = self.parse_semver_spec(
requirements) if requirements else None
item = None
item = {}
for v in versions:
semver_new = self.parse_semver_version(v['name'])
+1 -3
View File
@@ -12,8 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# pylint: disable=too-many-ancestors
import json
import os
import platform
@@ -464,7 +462,7 @@ def _get_api_result(
auth=None):
from platformio.app import get_setting
result = None
result = {}
r = None
verify_ssl = sys.version_info >= (2, 7, 9)