mirror of
https://github.com/platformio/platformio-core.git
synced 2025-08-05 21:04:27 +02:00
YAPF 0.26.0
This commit is contained in:
@@ -352,8 +352,8 @@ def get_cid():
|
|||||||
pass
|
pass
|
||||||
cid = str(
|
cid = str(
|
||||||
uuid.UUID(
|
uuid.UUID(
|
||||||
bytes=hashlib.md5(str(_uid if _uid else uuid.getnode())).
|
bytes=hashlib.md5(str(
|
||||||
digest()))
|
_uid if _uid else uuid.getnode())).digest()))
|
||||||
if "windows" in util.get_systype() or os.getuid() > 0:
|
if "windows" in util.get_systype() or os.getuid() > 0:
|
||||||
set_state_item("cid", cid)
|
set_state_item("cid", cid)
|
||||||
return cid
|
return cid
|
||||||
|
@@ -95,8 +95,10 @@ def LoadPioPlatform(env, variables):
|
|||||||
for key, value in variables.UnknownVariables().items():
|
for key, value in variables.UnknownVariables().items():
|
||||||
if not key.startswith("BOARD_"):
|
if not key.startswith("BOARD_"):
|
||||||
continue
|
continue
|
||||||
env.Replace(
|
env.Replace(**{
|
||||||
**{key.upper().replace("BUILD.", ""): base64.b64decode(value)})
|
key.upper().replace("BUILD.", ""):
|
||||||
|
base64.b64decode(value)
|
||||||
|
})
|
||||||
return
|
return
|
||||||
|
|
||||||
# update board manifest with a custom data
|
# update board manifest with a custom data
|
||||||
|
@@ -365,8 +365,8 @@ def platform_update(platforms, only_packages, only_check, json_output):
|
|||||||
if not pkg_dir:
|
if not pkg_dir:
|
||||||
continue
|
continue
|
||||||
latest = pm.outdated(pkg_dir, requirements)
|
latest = pm.outdated(pkg_dir, requirements)
|
||||||
if (not latest and not PlatformFactory.newPlatform(pkg_dir).
|
if (not latest and not PlatformFactory.newPlatform(
|
||||||
are_outdated_packages()):
|
pkg_dir).are_outdated_packages()):
|
||||||
continue
|
continue
|
||||||
data = _get_installed_platform_data(
|
data = _get_installed_platform_data(
|
||||||
pkg_dir, with_boards=False, expose_packages=False)
|
pkg_dir, with_boards=False, expose_packages=False)
|
||||||
|
@@ -633,10 +633,8 @@ class PlatformBase( # pylint: disable=too-many-public-methods
|
|||||||
if not isdir(libcore_dir):
|
if not isdir(libcore_dir):
|
||||||
continue
|
continue
|
||||||
storages.append({
|
storages.append({
|
||||||
"name":
|
"name": "%s-core-%s" % (opts['package'], item),
|
||||||
"%s-core-%s" % (opts['package'], item),
|
"path": libcore_dir
|
||||||
"path":
|
|
||||||
libcore_dir
|
|
||||||
})
|
})
|
||||||
|
|
||||||
return storages
|
return storages
|
||||||
|
@@ -568,16 +568,11 @@ def get_mdns_services():
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
items.append({
|
items.append({
|
||||||
"type":
|
"type": service.type,
|
||||||
service.type,
|
"name": service.name,
|
||||||
"name":
|
"ip": ".".join([str(ord(c)) for c in service.address]),
|
||||||
service.name,
|
"port": service.port,
|
||||||
"ip":
|
"properties": properties
|
||||||
".".join([str(ord(c)) for c in service.address]),
|
|
||||||
"port":
|
|
||||||
service.port,
|
|
||||||
"properties":
|
|
||||||
properties
|
|
||||||
})
|
})
|
||||||
return items
|
return items
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user