Skip to content

Commit

Permalink
YAPF 0.26.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankravets committed Mar 7, 2019
1 parent 9639626 commit 736a140
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 20 deletions.
4 changes: 2 additions & 2 deletions platformio/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,8 @@ def get_cid():
pass
cid = str(
uuid.UUID(
bytes=hashlib.md5(str(_uid if _uid else uuid.getnode())).
digest()))
bytes=hashlib.md5(str(
_uid if _uid else uuid.getnode())).digest()))
if "windows" in util.get_systype() or os.getuid() > 0:
set_state_item("cid", cid)
return cid
6 changes: 4 additions & 2 deletions platformio/builder/tools/pioplatform.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,10 @@ def LoadPioPlatform(env, variables):
for key, value in variables.UnknownVariables().items():
if not key.startswith("BOARD_"):
continue
env.Replace(
**{key.upper().replace("BUILD.", ""): base64.b64decode(value)})
env.Replace(**{
key.upper().replace("BUILD.", ""):
base64.b64decode(value)
})
return

# update board manifest with a custom data
Expand Down
4 changes: 2 additions & 2 deletions platformio/commands/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 2 additions & 4 deletions platformio/managers/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,10 +633,8 @@ def get_lib_storages(self):
if not isdir(libcore_dir):
continue
storages.append({
"name":
"%s-core-%s" % (opts['package'], item),
"path":
libcore_dir
"name": "%s-core-%s" % (opts['package'], item),
"path": libcore_dir
})

return storages
Expand Down
15 changes: 5 additions & 10 deletions platformio/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,16 +568,11 @@ def get_services(self):
pass

items.append({
"type":
service.type,
"name":
service.name,
"ip":
".".join([str(ord(c)) for c in service.address]),
"port":
service.port,
"properties":
properties
"type": service.type,
"name": service.name,
"ip": ".".join([str(ord(c)) for c in service.address]),
"port": service.port,
"properties": properties
})
return items

Expand Down

0 comments on commit 736a140

Please sign in to comment.