diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-10-26 23:28:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-26 23:28:40 (GMT) |
commit | 5074c35c2a5659e74cd7a0e925a0d7e493ea28e1 (patch) | |
tree | 70ea35e4f3f82d78d32f2dc22828b766f4e107fa | |
parent | f786485f134c76a216b0dd891273f1006bb44863 (diff) | |
download | cpython-5074c35c2a5659e74cd7a0e925a0d7e493ea28e1.zip cpython-5074c35c2a5659e74cd7a0e925a0d7e493ea28e1.tar.gz cpython-5074c35c2a5659e74cd7a0e925a0d7e493ea28e1.tar.bz2 |
Fix readline.c compiler warning. (GH-98738)
```
Modules/readline.c:1260:37: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
completer_word_break_characters =
^
```
(cherry picked from commit 29b391b1378577825a658b14764a8ff3e0b5c958)
Co-authored-by: Benjamin Peterson <benjamin@python.org>
-rw-r--r-- | Modules/readline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/readline.c b/Modules/readline.c index c79d22f..1d50672 100644 --- a/Modules/readline.c +++ b/Modules/readline.c @@ -1256,9 +1256,9 @@ setup_readline(readlinestate *mod_state) rl_attempted_completion_function = flex_complete; /* Set Python word break characters */ completer_word_break_characters = - rl_completer_word_break_characters = strdup(" \t\n`~!@#$%^&*()-=+[{]}\\|;:'\",<>/?"); /* All nonalphanums except '.' */ + rl_completer_word_break_characters = completer_word_break_characters; mod_state->begidx = PyLong_FromLong(0L); mod_state->endidx = PyLong_FromLong(0L); |