aboutsummaryrefslogtreecommitdiff
path: root/py/builtinimport.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2020-04-09 17:22:25 +1000
committerDamien George <damien.p.george@gmail.com>2020-04-13 22:19:37 +1000
commit8e048d2548867aac743866ca5a4c244b7b5aac09 (patch)
treee62e2ce312ba0e6dc498d7db8901d935f6afd3de /py/builtinimport.c
parentdb137e70dcf67de26828e17c2d3dc9d21e971eb0 (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 'py/builtinimport.c')
-rw-r--r--py/builtinimport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/builtinimport.c b/py/builtinimport.c
index 5c82c68d9..28a8f41f7 100644
--- a/py/builtinimport.c
+++ b/py/builtinimport.c
@@ -313,7 +313,7 @@ mp_obj_t mp_builtin___import__(size_t n_args, const mp_obj_t *args) {
// We must have some component left over to import from
if (p == this_name) {
- mp_raise_ValueError(MP_ERROR_TEXT("cannot perform relative import"));
+ mp_raise_ValueError(MP_ERROR_TEXT("can't perform relative import"));
}
uint new_mod_l = (mod_len == 0 ? (size_t)(p - this_name) : (size_t)(p - this_name) + 1 + mod_len);