forked from platformio/platformio-core
YAPF 0.26.0
This commit is contained in:
@@ -365,8 +365,8 @@ def platform_update(platforms, only_packages, only_check, json_output):
|
||||
if not pkg_dir:
|
||||
continue
|
||||
latest = pm.outdated(pkg_dir, requirements)
|
||||
if (not latest and not PlatformFactory.newPlatform(pkg_dir).
|
||||
are_outdated_packages()):
|
||||
if (not latest and not PlatformFactory.newPlatform(
|
||||
pkg_dir).are_outdated_packages()):
|
||||
continue
|
||||
data = _get_installed_platform_data(
|
||||
pkg_dir, with_boards=False, expose_packages=False)
|
||||
|
||||
@@ -432,5 +432,5 @@ def calculate_project_hash():
|
||||
# Fix issue with useless project rebuilding for case insensitive FS.
|
||||
# A case of disk drive can differ...
|
||||
chunks_to_str = chunks_to_str.lower()
|
||||
return sha1(chunks_to_str if util.PY2 else chunks_to_str.
|
||||
encode()).hexdigest()
|
||||
return sha1(
|
||||
chunks_to_str if util.PY2 else chunks_to_str.encode()).hexdigest()
|
||||
|
||||
Reference in New Issue
Block a user