Skip to content

Commit

Permalink
delete get_only()
Browse files Browse the repository at this point in the history
  • Loading branch information
oconnor663 committed Jul 30, 2016
1 parent 25df5f9 commit c33f316
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions peru/async.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ def __init__(self, exceptions, reprs):

self.message = "\n".join(self.reprs)

def get_only(self):
assert len(self.exceptions) == 1, "more than one gathered exception"
return self.exceptions[0]


@asyncio.coroutine
def gather_coalescing_exceptions(coros, display, *, verbose):
Expand Down

0 comments on commit c33f316

Please sign in to comment.