Commit 897129a7 authored by Damien George's avatar Damien George
Browse files

py/objstr: Remove unreachable function used only for terse error msgs.

parent 290daa15
......@@ -881,9 +881,14 @@ STATIC mp_obj_t arg_as_int(mp_obj_t arg) {
return arg;
STATIC NORETURN void terse_str_format_value_error(void) {
mp_raise_ValueError("bad format string");
// define to nothing to improve coverage
#define terse_str_format_value_error()
STATIC vstr_t mp_obj_str_format_helper(const char *str, const char *top, int *arg_i, mp_uint_t n_args, const mp_obj_t *args, mp_map_t *kwargs) {
vstr_t vstr;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment