From b8156f755bfe7193d0e45aaf47e40020782e2352 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Wed, 16 Jul 2025 11:05:59 -0400 Subject: [PATCH] src/sage/interfaces/maxima_lib.py: remove old workaround One of our Maxima monkey-patches was merged upstream some time ago: https://sourceforge.net/p/maxima/patches/102/ Now that it has been a while, we may assume that the fix is present in Maxima. As a result, the workaround from issue 31553 can be removed. Closes: https://github.com/sagemath/sage/issues/32611 --- src/sage/interfaces/maxima_lib.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/sage/interfaces/maxima_lib.py b/src/sage/interfaces/maxima_lib.py index a8ba86ae3d0..1d732ee7b52 100644 --- a/src/sage/interfaces/maxima_lib.py +++ b/src/sage/interfaces/maxima_lib.py @@ -173,15 +173,9 @@ # question and returning the answer. Our version throws an error in # which the text of the question is included. This is accomplished by # redirecting *standard-output* to a string. -# -# After an update in Issue 31553, this routine also preprocesses the -# text to replace space symbols with strings. This prevents those -# symbols from being turned into ugly newlines -- a problem that we -# used to avoid with a custom patch. ecl_eval(r""" (defun retrieve (msg flag &aux (print? nil)) (declare (special msg flag print?)) - (setq msg (mapcar #'(lambda (x) (if (eq x '| |) " " x)) msg)) (or (eq flag 'noprint) (setq print? t)) (error (concatenate 'string