forked from platformio/platformio-core
Format code with pep8 style
This commit is contained in:
1 parent
0c9d539a92
commit
87d0ead203
27 files changed
+514
-446
No files matched your search
+12
-17
@@ -49,28 +49,23 @@ DEFAULT_SETTINGS = {
|
||||
"value": False
|
||||
},
|
||||
"enable_telemetry": {
|
||||
"description": (
|
||||
"Telemetry service <http://docs.platformio.org/en/stable/"
|
||||
"userguide/cmd_settings.html?#enable-telemetry> (Yes/No)"),
|
||||
"description":
|
||||
("Telemetry service <http://docs.platformio.org/en/stable/"
|
||||
"userguide/cmd_settings.html?#enable-telemetry> (Yes/No)"),
|
||||
"value": True
|
||||
},
|
||||
"enable_prompts": {
|
||||
"description": (
|
||||
"Can PlatformIO communicate with you via prompts: "
|
||||
"propose to install platforms which aren't installed yet, "
|
||||
"paginate over library search results and etc.)? ATTENTION!!! "
|
||||
"If you call PlatformIO like subprocess, "
|
||||
"please disable prompts to avoid blocking (Yes/No)"),
|
||||
"description":
|
||||
("Can PlatformIO communicate with you via prompts: "
|
||||
"propose to install platforms which aren't installed yet, "
|
||||
"paginate over library search results and etc.)? ATTENTION!!! "
|
||||
"If you call PlatformIO like subprocess, "
|
||||
"please disable prompts to avoid blocking (Yes/No)"),
|
||||
"value": True
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
SESSION_VARS = {
|
||||
"command_ctx": None,
|
||||
"force_option": False,
|
||||
"caller_id": None
|
||||
}
|
||||
SESSION_VARS = {"command_ctx": None, "force_option": False, "caller_id": None}
|
||||
|
||||
|
||||
class State(object):
|
||||
@@ -108,8 +103,8 @@ class State(object):
|
||||
return
|
||||
self._lockfile = LockFile(self.path)
|
||||
|
||||
if (self._lockfile.is_locked() and
|
||||
(time() - getmtime(self._lockfile.lock_file)) > 10):
|
||||
if self._lockfile.is_locked() and \
|
||||
(time() - getmtime(self._lockfile.lock_file)) > 10:
|
||||
self._lockfile.break_lock()
|
||||
|
||||
self._lockfile.acquire()
|
||||
|
||||
Reference in new issue
Block a user