Skip to content

Commit

Permalink
beginning instead of begun. because from the user's point of view, en…
Browse files Browse the repository at this point in the history
…tering the record is actually just the start of their code.
  • Loading branch information
mahmoud committed May 13, 2016
1 parent 7b56560 commit ee7d35d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lithoxyl/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def begin(self, message=None, *a, **kw):
self.data_map.update(kw)
if not self.begin_event:
if not message:
message = self.name + ' begun'
message = self.name + ' beginning'

self.begin_event = BeginEvent(self, time.time(), message, a)
self.logger.on_begin(self.begin_event)
Expand Down Expand Up @@ -254,7 +254,7 @@ def __setitem__(self, key, value):

def get_elapsed_time(self):
"""Simply get the amount of time that has passed since the record was
created or begun. This method has no side effects.
created or begin was called. This method has no side effects.
"""
if self.begin_event:
return time.time() - self.begin_event.etime
Expand Down

0 comments on commit ee7d35d

Please sign in to comment.