Skip to content

Commit

Permalink
develop #comment Implement method __enter__ on history object for tes…
Browse files Browse the repository at this point in the history
…ting purposes.
  • Loading branch information
Luc Sinet committed Apr 10, 2019
1 parent 0114a0c commit b949f58
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions OpenCast/history.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ def __init__(self, items=[]):
self._browsing = False
self._items = items

def __enter__(self):
return self

def __repr__(self):
return str(self._items)

Expand Down

0 comments on commit b949f58

Please sign in to comment.