diff options
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ast.c | 2 | ||||
-rw-r--r-- | Python/compile.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Python/ast.c b/Python/ast.c index aaf158f5c5..b08cf9b130 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -191,7 +191,7 @@ num_stmts(const node *n) default: { char buf[128]; - sprintf(buf, "Non-statement found: %d %d\n", + sprintf(buf, "Non-statement found: %d %d", TYPE(n), NCH(n)); Py_FatalError(buf); } diff --git a/Python/compile.c b/Python/compile.c index e50c75cf5c..7c44f091ce 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -1239,7 +1239,7 @@ get_ref_type(struct compiler *c, PyObject *name) char buf[350]; PyOS_snprintf(buf, sizeof(buf), "unknown scope for %.100s in %.100s(%s) in %s\n" - "symbols: %s\nlocals: %s\nglobals: %s\n", + "symbols: %s\nlocals: %s\nglobals: %s", PyBytes_AS_STRING(name), PyBytes_AS_STRING(c->u->u_name), PyObject_REPR(c->u->u_ste->ste_id), |