py/parsenum: Adjust braces so they are balanced.
This commit is contained in:
parent
e773a2cdba
commit
f2ec792554
|
@ -319,11 +319,13 @@ mp_obj_t mp_parse_num_decimal(const char *str, size_t len, bool allow_imag, bool
|
|||
return mp_obj_new_complex(0, dec_val);
|
||||
} else if (force_complex) {
|
||||
return mp_obj_new_complex(dec_val, 0);
|
||||
}
|
||||
#else
|
||||
if (imag || force_complex) {
|
||||
raise_exc(mp_obj_new_exception_msg(&mp_type_ValueError, "complex values not supported"), lex);
|
||||
}
|
||||
#endif
|
||||
} else {
|
||||
else {
|
||||
return mp_obj_new_float(dec_val);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue