Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
tardyp committed Apr 19, 2017
1 parent b2e4a0e commit b5ad181
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions master/buildbot/buildbot_net_usage_data.py
Expand Up @@ -50,7 +50,7 @@ def linux_distribution():
with open("/etc/os-release") as f:
for line in f:
try:
k, v = line.strip().split("=")
k, v = line.strip().split("=")
meta_data[k] = v.strip('""')
except Exception:
pass
Expand Down Expand Up @@ -96,10 +96,10 @@ def sanitize(name):
return sanitize(type(obj).__name__)


def countPlugins(plugins_uses, l):
if isinstance(l, dict):
l = l.values()
for i in l:
def countPlugins(plugins_uses, lst):
if isinstance(lst, dict):
lst = lst.values()
for i in lst:
name = getName(i)
plugins_uses.setdefault(name, 0)
plugins_uses[name] += 1
Expand Down

0 comments on commit b5ad181

Please sign in to comment.