]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
closes bpo-43278: remove unnecessary leading '\n' from COMPILER when build with GCC...
authorJoseph Shen <joseph.smeng@gmail.com>
Fri, 26 Feb 2021 04:24:21 +0000 (12:24 +0800)
committerGitHub <noreply@github.com>
Fri, 26 Feb 2021 04:24:21 +0000 (20:24 -0800)
Automerge-Triggered-By: GH:benjaminp
Misc/NEWS.d/next/C API/2021-02-21-15-30-38.bpo-43278.DMPaWH.rst [new file with mode: 0644]
Python/getcompiler.c

diff --git a/Misc/NEWS.d/next/C API/2021-02-21-15-30-38.bpo-43278.DMPaWH.rst b/Misc/NEWS.d/next/C API/2021-02-21-15-30-38.bpo-43278.DMPaWH.rst
new file mode 100644 (file)
index 0000000..7df9295
--- /dev/null
@@ -0,0 +1 @@
+Always put compiler and system information on the first line of the REPL welcome message.\r
index 59c0dbf92aebf42fabf41661b8262aa89a15b60b..a5d26239e8772ed8773a9df1b2dc492a97fafd79 100644 (file)
@@ -8,9 +8,9 @@
 // Note the __clang__ conditional has to come before the __GNUC__ one because
 // clang pretends to be GCC.
 #if defined(__clang__)
-#define COMPILER "\n[Clang " __clang_version__ "]"
+#define COMPILER "[Clang " __clang_version__ "]"
 #elif defined(__GNUC__)
-#define COMPILER "\n[GCC " __VERSION__ "]"
+#define COMPILER "[GCC " __VERSION__ "]"
 // Generic fallbacks.
 #elif defined(__cplusplus)
 #define COMPILER "[C++]"