YAPF 0.26.0

This commit is contained in:
Ivan Kravets
2019-03-07 12:36:17 +02:00
parent 237d55208c
commit 3f52a6d5ba
5 changed files with 12 additions and 14 deletions

View File

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

View File

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