Format code with pep8 style

This commit is contained in:
Ivan Kravets
2016-08-03 23:38:20 +03:00
parent 0c9d539a92
commit 87d0ead203
27 changed files with 514 additions and 446 deletions

View File

@@ -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)