File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed
numba_cuda/numba/cuda/core Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -70,12 +70,9 @@ def fallback_context(state, msg):
7070 # this emits a warning containing the error message body in the
7171 # case of fallback from npm to objmode
7272 loop_lift = "" if state .flags .enable_looplift else "OUT"
73- msg_rewrite = (
74- "\n Compilation is falling back to object mode "
75- "WITH%s looplifting enabled because %s" % (loop_lift , msg )
76- )
7773 warnings .warn_explicit (
78- "%s due to: %s" % (msg_rewrite , e ),
74+ "Compilation is falling back to object mode "
75+ f"WITH{ loop_lift } looplifting enabled because { msg } due to: { e } " ,
7976 errors .NumbaWarning ,
8077 state .func_id .filename ,
8178 state .func_id .firstlineno ,
Original file line number Diff line number Diff line change @@ -65,12 +65,9 @@ def fallback_context(state, msg):
6565 # this emits a warning containing the error message body in the
6666 # case of fallback from npm to objmode
6767 loop_lift = "" if state .flags .enable_looplift else "OUT"
68- msg_rewrite = (
69- "\n Compilation is falling back to object mode "
70- "WITH%s looplifting enabled because %s" % (loop_lift , msg )
71- )
7268 warnings .warn_explicit (
73- "%s due to: %s" % (msg_rewrite , e ),
69+ "Compilation is falling back to object mode "
70+ f"WITH{ loop_lift } looplifting enabled because { msg } due to: { e } " ,
7471 errors .NumbaWarning ,
7572 state .func_id .filename ,
7673 state .func_id .firstlineno ,
You can’t perform that action at this time.
0 commit comments