diff options
| author | Damien George <damien.p.george@gmail.com> | 2020-04-09 17:22:25 +1000 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2020-04-13 22:19:37 +1000 |
| commit | 8e048d2548867aac743866ca5a4c244b7b5aac09 (patch) | |
| tree | e62e2ce312ba0e6dc498d7db8901d935f6afd3de /extmod/modure.c | |
| parent | db137e70dcf67de26828e17c2d3dc9d21e971eb0 (diff) | |
all: Clean up error strings to use lowercase and change cannot to can't.
Now that error string compression is supported it's more important to have
consistent error string formatting (eg all lowercase English words,
consistent contractions). This commit cleans up some of the strings to
make them more consistent.
Diffstat (limited to 'extmod/modure.c')
| -rw-r--r-- | extmod/modure.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extmod/modure.c b/extmod/modure.c index ed16955ae..ff99e66d8 100644 --- a/extmod/modure.c +++ b/extmod/modure.c @@ -235,7 +235,7 @@ STATIC mp_obj_t re_split(size_t n_args, const mp_obj_t *args) { mp_obj_t s = mp_obj_new_str_of_type(str_type, (const byte *)subj.begin, caps[0] - subj.begin); mp_obj_list_append(retval, s); if (self->re.sub > 0) { - mp_raise_NotImplementedError(MP_ERROR_TEXT("Splitting with sub-captures")); + mp_raise_NotImplementedError(MP_ERROR_TEXT("splitting with sub-captures")); } subj.begin = caps[1]; if (maxsplit > 0 && --maxsplit == 0) { @@ -403,7 +403,7 @@ STATIC mp_obj_t mod_re_compile(size_t n_args, const mp_obj_t *args) { int error = re1_5_compilecode(&o->re, re_str); if (error != 0) { error: - mp_raise_ValueError(MP_ERROR_TEXT("Error in regex")); + mp_raise_ValueError(MP_ERROR_TEXT("error in regex")); } #if MICROPY_PY_URE_DEBUG if (flags & FLAG_DEBUG) { |
