summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-03-29 12:36:46 +1100
committerDamien George <damien.p.george@gmail.com>2017-03-29 12:36:46 +1100
commit18c059febfd713271155d25a3a28661e8911ef8d (patch)
tree0c15126e8b40d79845bb2962143385a788d21371
parentf55a059e7a31ceb301196ecea80c1f4a043f4150 (diff)
downloadmicropython-18c059febfd713271155d25a3a28661e8911ef8d.tar.gz
micropython-18c059febfd713271155d25a3a28661e8911ef8d.zip
py: Shorten a couple of error messages.
-rw-r--r--py/compile.c2
-rw-r--r--py/objdict.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/py/compile.c b/py/compile.c
index 1f9eb84fea..4fe59853c2 100644
--- a/py/compile.c
+++ b/py/compile.c
@@ -1524,7 +1524,7 @@ STATIC void compile_try_except(compiler_t *comp, mp_parse_node_t pn_body, int n_
if (MP_PARSE_NODE_IS_NULL(pns_except->nodes[0])) {
// this is a catch all exception handler
if (i + 1 != n_except) {
- compile_syntax_error(comp, pn_excepts[i], "default 'except:' must be last");
+ compile_syntax_error(comp, pn_excepts[i], "default 'except' must be last");
compile_decrease_except_level(comp);
return;
}
diff --git a/py/objdict.c b/py/objdict.c
index 5f84d71c7a..f6929d23fd 100644
--- a/py/objdict.c
+++ b/py/objdict.c
@@ -386,7 +386,7 @@ STATIC mp_obj_t dict_update(size_t n_args, const mp_obj_t *args, mp_map_t *kwarg
if (key == MP_OBJ_STOP_ITERATION
|| value == MP_OBJ_STOP_ITERATION
|| stop != MP_OBJ_STOP_ITERATION) {
- mp_raise_ValueError("dictionary update sequence has the wrong length");
+ mp_raise_ValueError("dict update sequence has wrong length");
} else {
mp_map_lookup(&self->map, key, MP_MAP_LOOKUP_ADD_IF_NOT_FOUND)->value = value;
}