Mailing List Archive

closes bpo-43278: remove unnecessary leading '\n' from COMPILER when build with GCC/Clang (GH-24606)
https://github.com/python/cpython/commit/28a30bc2e2d5a02d42e65ff7b7c6968fa966279d
commit: 28a30bc2e2d5a02d42e65ff7b7c6968fa966279d
branch: master
author: Joseph Shen <joseph.smeng@gmail.com>
committer: miss-islington <31488909+miss-islington@users.noreply.github.com>
date: 2021-02-25T20:24:21-08:00
summary:

closes bpo-43278: remove unnecessary leading '\n' from COMPILER when build with GCC/Clang (GH-24606)



Automerge-Triggered-By: GH:benjaminp

files:
A Misc/NEWS.d/next/C API/2021-02-21-15-30-38.bpo-43278.DMPaWH.rst
M 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
index 0000000000000..7df9295aeccf0
--- /dev/null
+++ b/Misc/NEWS.d/next/C API/2021-02-21-15-30-38.bpo-43278.DMPaWH.rst
@@ -0,0 +1 @@
+Always put compiler and system information on the first line of the REPL welcome message.
diff --git a/Python/getcompiler.c b/Python/getcompiler.c
index 59c0dbf92aebf..a5d26239e8772 100644
--- a/Python/getcompiler.c
+++ b/Python/getcompiler.c
@@ -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++]"

_______________________________________________
Python-checkins mailing list
Python-checkins@python.org
https://mail.python.org/mailman/listinfo/python-checkins