diff options
author | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2011-12-06 17:18:05 +0100 |
---|---|---|
committer | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2011-12-06 17:18:05 +0100 |
commit | 36bed12a493017432e20d1ce7888f1f82a39cd6b (patch) | |
tree | 2d67967f88d563b984c446cbb359c510923e468b /morphlib/stopwatch.py | |
parent | 7fc337aa46f8732ed4e6dcef8e40d3e350ea705b (diff) | |
download | morph-36bed12a493017432e20d1ce7888f1f82a39cd6b.tar.gz |
Use assertEqual and drop has_keys().
Diffstat (limited to 'morphlib/stopwatch.py')
-rw-r--r-- | morphlib/stopwatch.py | 2 |
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() |