Skip to content

Commit

Permalink
Also fix parenthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
relativityspace-jsmith committed Mar 26, 2024
1 parent 0c94134 commit 6f71c7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ Q: What if, rather than using a Multicast Expert socket inside a single ``with``
def init():
self.mcast_socket = multicast_expert.McastTxSocket(...)
with contextlib.ExitStack as temp_exit_stack: # Creates a temporary ExitStack
with contextlib.ExitStack() as temp_exit_stack: # Creates a temporary ExitStack
temp_exit_stack.enter_context(self.mcast_socket) # Enter the mcast socket using the temporary stack
self.exit_stack = temp_exit_stack.pop_all() # Creates a new exit stack with ownership of mcast_socket "moved" into it
Expand Down

0 comments on commit 6f71c7a

Please sign in to comment.