Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
a6c5d53e
Commit
a6c5d53e
authored
Sep 27, 2015
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Plain Diff
Issue #25203: Failed readline.set_completer_delims() no longer left the
module in inconsistent state.
parents
ace12ee1
36aff2db
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
Misc/NEWS
Misc/NEWS
+3
-0
Modules/readline.c
Modules/readline.c
+5
-4
No files found.
Misc/NEWS
View file @
a6c5d53e
...
...
@@ -146,6 +146,9 @@ Core and Builtins
Library
-------
- Issue #25203: Failed readline.set_completer_delims() no longer left the
module in inconsistent state.
- Issue #23329: Allow the ssl module to be built with older versions of
LibreSSL.
...
...
Modules/readline.c
View file @
a6c5d53e
...
...
@@ -464,10 +464,11 @@ set_completer_delims(PyObject *self, PyObject *args)
/* Keep a reference to the allocated memory in the module state in case
some other module modifies rl_completer_word_break_characters
(see issue #17289). */
break_chars
=
strdup
(
break_chars
);
if
(
break_chars
)
{
free
(
completer_word_break_characters
);
completer_word_break_characters
=
strdup
(
break_chars
);
if
(
completer_word_break_characters
)
{
rl_completer_word_break_characters
=
completer_word_break_characters
;
completer_word_break_characters
=
break_chars
;
rl_completer_word_break_characters
=
break_chars
;
Py_RETURN_NONE
;
}
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment