Skip to content

Commit

Permalink
Removed unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Sep 27, 2022
1 parent 2fd8309 commit 80889b2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions trio/_core/_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ def __enter__(self):
task._activate_cancel_status(self._cancel_status)
return self

def _close(self, exc, collapse=False):
def _close(self, exc):
if self._cancel_status is None:
new_exc = RuntimeError(
"Cancel scope stack corrupted: attempted to exit {!r} "
Expand Down Expand Up @@ -837,9 +837,7 @@ async def __aexit__(self, etype, exc, tb):
new_exc = await self._nursery._nested_child_finished(exc)
# Tracebacks show the 'raise' line below out of context, so let's give
# this variable a name that makes sense out of context.
combined_error_from_nursery = self._scope._close(
new_exc, collapse=not self.strict_exception_groups
)
combined_error_from_nursery = self._scope._close(new_exc)
if combined_error_from_nursery is None:
return True
elif combined_error_from_nursery is exc:
Expand Down

0 comments on commit 80889b2

Please sign in to comment.