YAPF formatter

This commit is contained in:
Ivan Kravets committed 2017-11-01 14:10:32 +02:00
1 parent 86de58b9e1
commit e5e5ebb7db
7 files changed
+22 -22

No files matched your search

+4 -2
View File
@@ -237,8 +237,10 @@ class LibBuilderBase(object):
self.env.SConscriptChdir(1)
self.env.SConscript(
realpath(self.extra_script),
exports={"env": self.env,
"pio_lib_builder": self})
exports={
"env": self.env,
"pio_lib_builder": self
})
def _process_dependencies(self):
if not self.dependencies:
+2 -2
View File
@@ -108,8 +108,8 @@ def AutodetectUploadPort(*args, **kwargs): # pylint: disable=unused-argument
def _look_for_mbed_disk():
msdlabels = ("mbed", "nucleo", "frdm", "microbit")
for item in util.get_logicaldisks():
if item['disk'].startswith(
"/net") or not _is_match_pattern(item['disk']):
if item['disk'].startswith("/net") or not _is_match_pattern(
item['disk']):
continue
mbed_pages = [
join(item['disk'], n) for n in ("mbed.htm", "mbed.html")
+2 -4
View File
@@ -35,10 +35,8 @@ SRC_FILTER_DEFAULT = ["+<*>", "-<.git%s>" % sep, "-<svn%s>" % sep]
def BuildProgram(env):
def _append_pio_macros():
env.AppendUnique(CPPDEFINES=[
("PLATFORMIO",
int("{0:02d}{1:02d}{2:02d}".format(*pioversion_to_intstr())))
])
env.AppendUnique(CPPDEFINES=[("PLATFORMIO", int(
"{0:02d}{1:02d}{2:02d}".format(*pioversion_to_intstr())))])
_append_pio_macros()