File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ bool mp_obj_equal(mp_obj_t o1, mp_obj_t o2) {
199199 str_cmp_err :
200200 #if MICROPY_PY_STR_BYTES_CMP_WARN
201201 if (MP_OBJ_IS_TYPE (o1 , & mp_type_bytes ) || MP_OBJ_IS_TYPE (o2 , & mp_type_bytes )) {
202- mp_warning ("BytesWarning: Comparison between bytes and str" );
202+ mp_warning ("Comparison between bytes and str" );
203203 }
204204 #endif
205205 return false;
Original file line number Diff line number Diff line change 138138// names in exception messages (may require more RAM).
139139#define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_DETAILED)
140140#define MICROPY_WARNINGS (1)
141+ #define MICROPY_PY_STR_BYTES_CMP_WARN (1)
141142
142143// Define to 1 to use undertested inefficient GC helper implementation
143144// (if more efficient arch-specific one is not available).
You can’t perform that action at this time.
0 commit comments