mirror of
https://github.com/python/cpython.git
synced 2024-12-14 12:26:47 +08:00
Merged revisions 77463 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r77463 | antoine.pitrou | 2010-01-13 09:55:20 +0100 (mer., 13 janv. 2010) | 3 lines Fix Windows build (re r77461) ........
This commit is contained in:
parent
f2c5484f9e
commit
cbfdee3e54
@ -6386,10 +6386,10 @@ PyObject *replace(PyUnicodeObject *self,
|
|||||||
goto nothing;
|
goto nothing;
|
||||||
|
|
||||||
if (str1->length == str2->length) {
|
if (str1->length == str2->length) {
|
||||||
|
Py_ssize_t i;
|
||||||
/* same length */
|
/* same length */
|
||||||
if (str1->length == 0)
|
if (str1->length == 0)
|
||||||
goto nothing;
|
goto nothing;
|
||||||
Py_ssize_t i;
|
|
||||||
if (str1->length == 1) {
|
if (str1->length == 1) {
|
||||||
/* replace characters */
|
/* replace characters */
|
||||||
Py_UNICODE u1, u2;
|
Py_UNICODE u1, u2;
|
||||||
|
Loading…
Reference in New Issue
Block a user