[Python-checkins] cpython: Fix doc of an internal function: unicode_write_cstr()
victor.stinner
python-checkins at python.org
Wed Feb 22 21:21:57 CET 2012
http://hg.python.org/cpython/rev/31784350f849
changeset: 75186:31784350f849
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Wed Feb 22 21:22:20 2012 +0100
summary:
Fix doc of an internal function: unicode_write_cstr()
files:
Objects/unicodeobject.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -1640,8 +1640,9 @@
/* Copy a ASCII or latin1 char* string into a Python Unicode string.
Return the length of the input string.
- WARNING: Don't copy the terminating null character and don't check the
- maximum character (may write a latin1 character in an ASCII string). */
+ WARNING: The function doesn't copy the terminating null character and
+ doesn't check the maximum character (may write a latin1 character in an
+ ASCII string). */
static Py_ssize_t
unicode_write_cstr(PyObject *unicode, Py_ssize_t index, const char *str)
{
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list