#NEWLINE# @ contextmanager #NEWLINE# def _wrap_update_reconciler_sync( self , broker , calls ) : #NEWLINE# #INDENT# def wrapper_function( * args , **kwargs ) : #NEWLINE# #INDENT# calls . append ( args ) #NEWLINE# orig_function ( * args , ** kwargs ) #NEWLINE# #UNINDENT# orig_function = broker . update_reconciler_sync #NEWLINE# broker . update_reconciler_sync = wrapper_function #NEWLINE# try : #NEWLINE# #INDENT# ( yield True ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# broker . update_reconciler_sync = wrapper_function