#4077: No need to append \n when calling Py_FatalError
+ fix a declaration to make it match the one in pythonrun.h
diff --git a/Python/ast.c b/Python/ast.c
index 9e8df86..5f369b6 100644
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -197,7 +197,7 @@
         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 8f0fd8d..44ced73 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -1254,7 +1254,7 @@
 	    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",
 			  PyString_AS_STRING(name), 
 			  PyString_AS_STRING(c->u->u_name), 
 			  PyObject_REPR(c->u->u_ste->ste_id),