From fa5305242d822a03e4c10362e52774ec52ccfcd0 Mon Sep 17 00:00:00 2001 From: Harshil <37377066+harshil21@users.noreply.github.com> Date: Wed, 9 Mar 2022 17:31:47 +0530 Subject: [PATCH 1/3] Remove new line in pickle error message --- Modules/_pickle.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/_pickle.c b/Modules/_pickle.c index 19e8a71073c974..b56a0408f135f2 100644 --- a/Modules/_pickle.c +++ b/Modules/_pickle.c @@ -6058,7 +6058,7 @@ load_persid(UnpicklerObject *self) else { PickleState *st = _Pickle_GetGlobalState(); PyErr_SetString(st->UnpicklingError, - "A load persistent id instruction was encountered,\n" + "A load persistent id instruction was encountered, " "but no persistent_load function was specified."); return -1; } @@ -6085,7 +6085,7 @@ load_binpersid(UnpicklerObject *self) else { PickleState *st = _Pickle_GetGlobalState(); PyErr_SetString(st->UnpicklingError, - "A load persistent id instruction was encountered,\n" + "A load persistent id instruction was encountered, " "but no persistent_load function was specified."); return -1; } From c43354f2c984e25538d126dca1cccc709219fcd9 Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Tue, 6 Sep 2022 14:18:01 +0000 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2022-09-06-14-18-00.gh-issue-31782.4h2Btc.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Core and Builtins/2022-09-06-14-18-00.gh-issue-31782.4h2Btc.rst diff --git a/Misc/NEWS.d/next/Core and Builtins/2022-09-06-14-18-00.gh-issue-31782.4h2Btc.rst b/Misc/NEWS.d/next/Core and Builtins/2022-09-06-14-18-00.gh-issue-31782.4h2Btc.rst new file mode 100644 index 00000000000000..ce526bfcc06431 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2022-09-06-14-18-00.gh-issue-31782.4h2Btc.rst @@ -0,0 +1 @@ +Remove newline character in an error message generated by the pickle module. From 2fefd191a29bfe063f96030740f6d8f46203f6ae Mon Sep 17 00:00:00 2001 From: Harshil <37377066+harshil21@users.noreply.github.com> Date: Tue, 11 Oct 2022 18:34:58 +0530 Subject: [PATCH 3/3] remove news entry --- .../2022-09-06-14-18-00.gh-issue-31782.4h2Btc.rst | 1 - 1 file changed, 1 deletion(-) delete mode 100644 Misc/NEWS.d/next/Core and Builtins/2022-09-06-14-18-00.gh-issue-31782.4h2Btc.rst diff --git a/Misc/NEWS.d/next/Core and Builtins/2022-09-06-14-18-00.gh-issue-31782.4h2Btc.rst b/Misc/NEWS.d/next/Core and Builtins/2022-09-06-14-18-00.gh-issue-31782.4h2Btc.rst deleted file mode 100644 index ce526bfcc06431..00000000000000 --- a/Misc/NEWS.d/next/Core and Builtins/2022-09-06-14-18-00.gh-issue-31782.4h2Btc.rst +++ /dev/null @@ -1 +0,0 @@ -Remove newline character in an error message generated by the pickle module.