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 /py/runtime.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 'py/runtime.c')
-rw-r--r-- | py/runtime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/runtime.c b/py/runtime.c index cad2fc256..1fa9e73f2 100644 --- a/py/runtime.c +++ b/py/runtime.c @@ -1392,7 +1392,7 @@ mp_obj_t mp_import_from(mp_obj_t module, qstr name) { if (dest[1] != MP_OBJ_NULL) { // Hopefully we can't import bound method from an object import_error: - mp_raise_msg_varg(&mp_type_ImportError, MP_ERROR_TEXT("cannot import name %q"), name); + mp_raise_msg_varg(&mp_type_ImportError, MP_ERROR_TEXT("can't import name %q"), name); } if (dest[0] != MP_OBJ_NULL) { |