Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

pep8 cleanups

  • Loading branch information...
commit 9276958aa7e6a9b5ccced65adedb05f8aa522eb1 1 parent b0d1c51
@cyberdelia authored
View
2  metrology/instruments/profiler.py
@@ -17,7 +17,7 @@ def __init__(self, data):
sample_count = statprof.state.sample_count
secs_per_sample = statprof.state.accumulated_time / sample_count
self.name = "{0}.{1}.{2}".format(basename(data.key.filename),
- data.key.name, data.key.lineno)
+ data.key.name, data.key.lineno)
self.percent = self_sample_count / sample_count * 100
self.cumulative = cum_sample_count * secs_per_sample
self.self = self_sample_count * secs_per_sample
View
6 metrology/reporter/librato.py
@@ -85,9 +85,9 @@ def write(self):
"counters": [data for metric in self.list_metrics() for type, data in metric if type == "counter"]
}
requests.post("https://metrics-api.librato.com/v1/metrics",
- data=dumps(metrics),
- auth=(self.email, self.token),
- headers={'content-type': 'application/json'})
+ data=dumps(metrics),
+ auth=(self.email, self.token),
+ headers={'content-type': 'application/json'})
def prepare_metric(self, name, type, metric, keys, snapshot_keys=[]):
base_name = re.sub(r"\s+", "_", name)
Please sign in to comment.
Something went wrong with that request. Please try again.