diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-12-12 00:53:47 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-12-12 00:53:47 (GMT) |
commit | bf6e560d0ccbe6bee4d835a15a8e8e098b9c7ef6 (patch) | |
tree | 42ccc12a1177bb5450efd6bd854f0ded5463e333 /Objects | |
parent | 7a9105a380779942bfe45936d074c8181dee14d9 (diff) | |
download | cpython-bf6e560d0ccbe6bee4d835a15a8e8e098b9c7ef6.zip cpython-bf6e560d0ccbe6bee4d835a15a8e8e098b9c7ef6.tar.gz cpython-bf6e560d0ccbe6bee4d835a15a8e8e098b9c7ef6.tar.bz2 |
Make PyUnicode_Copy() private => _PyUnicode_Copy()
Undocument the function.
Make also decode_utf8_errors() as private (static).
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/codeobject.c | 2 | ||||
-rw-r--r-- | Objects/unicodeobject.c | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c index c5057bd..550e284 100644 --- a/Objects/codeobject.c +++ b/Objects/codeobject.c @@ -249,7 +249,7 @@ validate_and_copy_tuple(PyObject *tup) return NULL; } else { - item = PyUnicode_Copy(item); + item = _PyUnicode_Copy(item); if (item == NULL) { Py_DECREF(newtuple); return NULL; diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index ddb7baa..5c2d2a7 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -497,7 +497,7 @@ unicode_result_unchanged(PyObject *unicode) } else /* Subtype -- return genuine unicode string with the same value. */ - return PyUnicode_Copy(unicode); + return _PyUnicode_Copy(unicode); } #ifdef HAVE_MBCS @@ -1961,7 +1961,7 @@ unicode_adjust_maxchar(PyObject **p_unicode) } PyObject* -PyUnicode_Copy(PyObject *unicode) +_PyUnicode_Copy(PyObject *unicode) { Py_ssize_t length; PyObject *copy; @@ -2832,7 +2832,7 @@ PyUnicode_FromObject(register PyObject *obj) if (PyUnicode_Check(obj)) { /* For a Unicode subtype that's not a Unicode object, return a true Unicode object with the same data. */ - return PyUnicode_Copy(obj); + return _PyUnicode_Copy(obj); } PyErr_Format(PyExc_TypeError, "Can't convert '%.100s' object to str implicitly", @@ -4333,7 +4333,7 @@ _ucs4loop: goto onError; \ } while (0) -PyObject * +static PyObject * decode_utf8_errors(const char *starts, Py_ssize_t size, const char *errors, @@ -9231,7 +9231,7 @@ fixup(PyObject *self, Py_UCS4 maxchar_old, maxchar_new = 0; PyObject *v; - u = PyUnicode_Copy(self); + u = _PyUnicode_Copy(self); if (u == NULL) return NULL; maxchar_old = PyUnicode_MAX_CHAR_VALUE(u); @@ -12753,7 +12753,7 @@ PyDoc_STRVAR(sizeof__doc__, static PyObject * unicode_getnewargs(PyObject *v) { - PyObject *copy = PyUnicode_Copy(v); + PyObject *copy = _PyUnicode_Copy(v); if (!copy) return NULL; return Py_BuildValue("(N)", copy); |