Author: amaury.forgeotdarc
Date: Thu Nov 22 03:55:35 2007
New Revision: 59110
Modified:
python/branches/py3k/Objects/stringobject.c
Log:
Typo in bytes.replace(): the buffer interface was always used.
Modified: python/branches/py3k/Objects/stringobject.c
==============================================================================
--- python/branches/py3k/Objects/stringobject.c (original)
+++ python/branches/py3k/Objects/stringobject.c Thu Nov 22 03:55:35 2007
@@ -2594,7 +2594,7 @@
from_s = PyString_AS_STRING(from);
from_len = PyString_GET_SIZE(from);
}
- if (PyUnicode_Check(from))
+ else if (PyUnicode_Check(from))
return PyUnicode_Replace((PyObject *)self,
from, to, count);
else if (PyObject_AsCharBuffer(from, &from_s, &from_len))
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins