#NEWLINE# @ contextmanager #NEWLINE# def fallback_context( self , msg ) : #NEWLINE# #INDENT# '\n        Wraps code that would signal a fallback to object mode\n        ' #NEWLINE# try : #NEWLINE# #INDENT# ( yield ) #NEWLINE# #UNINDENT# except BaseException as e : #NEWLINE# #INDENT# if ( not self . status . can_fallback ) : #NEWLINE# #INDENT# raise #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( utils . PYVERSION >= ( 3 , ) ) : #NEWLINE# #INDENT# e = e . with_traceback ( None ) #NEWLINE# #UNINDENT# warnings . warn_explicit ( ( '%s: %s' % ( self , e ) ) , errors . NumbaWarning , self . func_attr . filename , self . func_attr . lineno ) #NEWLINE# raise