forked from platformio/platformio-core
Format code with pep8 style
This commit is contained in:
@@ -210,8 +210,7 @@ class MPDataPusher(object):
|
||||
"https://ssl.google-analytics.com/collect",
|
||||
data=data,
|
||||
headers=util.get_request_defheaders(),
|
||||
timeout=1
|
||||
)
|
||||
timeout=1)
|
||||
r.raise_for_status()
|
||||
return True
|
||||
except: # pylint: disable=W0702
|
||||
@@ -233,11 +232,7 @@ def on_command():
|
||||
|
||||
|
||||
def measure_ci():
|
||||
event = {
|
||||
"category": "CI",
|
||||
"action": "NoName",
|
||||
"label": None
|
||||
}
|
||||
event = {"category": "CI", "action": "NoName", "label": None}
|
||||
|
||||
envmap = {
|
||||
"APPVEYOR": {"label": getenv("APPVEYOR_REPO_NAME")},
|
||||
@@ -258,11 +253,7 @@ def measure_ci():
|
||||
|
||||
def measure_caller(calller_id):
|
||||
calller_id = str(calller_id)[:20].lower()
|
||||
event = {
|
||||
"category": "Caller",
|
||||
"action": "Misc",
|
||||
"label": calller_id
|
||||
}
|
||||
event = {"category": "Caller", "action": "Misc", "label": calller_id}
|
||||
if calller_id in (["atom", "vim"] + ProjectGenerator.get_supported_ides()):
|
||||
event['action'] = "IDE"
|
||||
on_event(**event)
|
||||
|
Reference in New Issue
Block a user