summaryrefslogtreecommitdiff
path: root/morphlib/stopwatch.py
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2011-12-06 17:18:05 +0100
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2011-12-06 17:18:05 +0100
commit36bed12a493017432e20d1ce7888f1f82a39cd6b (patch)
tree2d67967f88d563b984c446cbb359c510923e468b /morphlib/stopwatch.py
parent7fc337aa46f8732ed4e6dcef8e40d3e350ea705b (diff)
downloadmorph-36bed12a493017432e20d1ce7888f1f82a39cd6b.tar.gz
Use assertEqual and drop has_keys().
Diffstat (limited to 'morphlib/stopwatch.py')
-rw-r--r--morphlib/stopwatch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/morphlib/stopwatch.py b/morphlib/stopwatch.py
index 826d5704..bcdc9291 100644
--- a/morphlib/stopwatch.py
+++ b/morphlib/stopwatch.py
@@ -23,7 +23,7 @@ class Stopwatch(object):
self.ticks = {}
def tick(self, reference_object, name):
- if not self.ticks.has_key(reference_object):
+ if not reference_object in self.ticks:
self.ticks[reference_object] = {}
self.ticks[reference_object][name] = datetime.now()