Skip to content

Commit 903c60e

Browse files
committed
src/sage/interfaces/maxima_abstract.py: more bad chars in _commands()
If we use a "\" instead of "-" in the list of bad characters, we catch all of the existing bad names, but get things like "SPLITS\\ IN\\ Q" as well.
1 parent 2f83c3e commit 903c60e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/sage/interfaces/maxima_abstract.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -332,15 +332,15 @@ def _commands(self):
332332
# * 'maybe\\-boole\\-verify'
333333
# * 'time\\/\\/call'
334334
# * 'unknown\\?'
335+
# * 'SPLITS\\ IN\\ Q'
335336
#
336-
# None of these are documented, and the minus sign / question
337+
# None of these are documented, and the backslash / question
337338
# mark / percent symbol probably aren't going to do what you
338-
# think they're going to do if you try to type them in an
339-
# ipython shell. We have to trim spaces too because some names
340-
# show up with a random leading spaces: ' tminverse',
341-
# ' toeplitz', etc.
339+
# think they're going to do if you type them in an ipython
340+
# shell. We have to trim spaces too because some names show up
341+
# with random leading spaces: ' tminverse', ' toeplitz', etc.
342342
#
343-
bad_chars = ("-", "/", "?", "%")
343+
bad_chars = ("\\", "/", "?", "%")
344344
return [c.strip()
345345
for c in all_names
346346
if c

0 commit comments

Comments
 (0)