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
11384393
Commit
11384393
authored
Sep 27, 2015
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #25203: Failed readline.set_completer_delims() no longer left the
module in inconsistent state.
parent
87d0066f
Changes
2
Hide 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 @
11384393
...
...
@@ -81,6 +81,9 @@ Core and Builtins
Library
-------
-
Issue
#
25203
:
Failed
readline
.
set_completer_delims
()
no
longer
left
the
module
in
inconsistent
state
.
-
Prevent
overflow
in
_Unpickler_Read
.
-
Issue
#
25047
:
The
XML
encoding
declaration
written
by
Element
Tree
now
...
...
Modules/readline.c
View file @
11384393
...
...
@@ -427,10 +427,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). */
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
;
break_chars
=
strdup
(
break_chars
);
if
(
break_chars
)
{
free
(
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