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
6b56a7fd
Commit
6b56a7fd
authored
Oct 04, 2011
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add assertion to _Py_ReleaseInternedUnicodeStrings() if READY fails
parent
5f99c912
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Objects/unicodeobject.c
Objects/unicodeobject.c
+4
-2
No files found.
Objects/unicodeobject.c
View file @
6b56a7fd
...
...
@@ -13131,7 +13131,7 @@ PyUnicode_InternInPlace(PyObject **p)
if
(
PyUnicode_CHECK_INTERNED
(
s
))
return
;
if
(
_PyUnicode_READY_REPLACE
(
p
))
{
assert
(
0
&&
"
PyUnicode_READY
fail in PyUnicode_InternInPlace"
);
assert
(
0
&&
"
_PyUnicode_READY_REPLACE
fail in PyUnicode_InternInPlace"
);
return
;
}
s
=
(
PyUnicodeObject
*
)(
*
p
);
...
...
@@ -13217,8 +13217,10 @@ _Py_ReleaseInternedUnicodeStrings(void)
n
);
for
(
i
=
0
;
i
<
n
;
i
++
)
{
s
=
(
PyUnicodeObject
*
)
PyList_GET_ITEM
(
keys
,
i
);
if
(
PyUnicode_READY
(
s
)
==
-
1
)
if
(
PyUnicode_READY
(
s
)
==
-
1
)
{
assert
(
0
&&
"could not ready string"
);
fprintf
(
stderr
,
"could not ready string
\n
"
);
}
switch
(
PyUnicode_CHECK_INTERNED
(
s
))
{
case
SSTATE_NOT_INTERNED
:
/* XXX Shouldn't happen */
...
...
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