diff options
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() |