diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2020-04-01 12:41:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-01 12:41:49 (GMT) |
commit | 17b4733f2ff0a4abc06e8c745755c06fc32942dd (patch) | |
tree | c2c4d1144db8e4276ff0ebc74304d9008dcd10c1 /Include | |
parent | 3ef4a7e5a7c29e17d5152d1fa6ceeb1fee269699 (diff) | |
download | cpython-17b4733f2ff0a4abc06e8c745755c06fc32942dd.zip cpython-17b4733f2ff0a4abc06e8c745755c06fc32942dd.tar.gz cpython-17b4733f2ff0a4abc06e8c745755c06fc32942dd.tar.bz2 |
bpo-40130: _PyUnicode_AsKind() should not be exported. (GH-19265)
Make it a static function, and pass known attributes
(kind, data, length) instead of the PyUnicode object.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/cpython/unicodeobject.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Include/cpython/unicodeobject.h b/Include/cpython/unicodeobject.h index 0df6479..81a35cd 100644 --- a/Include/cpython/unicodeobject.h +++ b/Include/cpython/unicodeobject.h @@ -726,12 +726,6 @@ PyAPI_FUNC(int) _PyUnicode_FormatAdvancedWriter( Py_ssize_t start, Py_ssize_t end); -/* --- wchar_t support for platforms which support it --------------------- */ - -#ifdef HAVE_WCHAR_H -PyAPI_FUNC(void*) _PyUnicode_AsKind(PyObject *s, unsigned int kind); -#endif - /* --- Manage the default encoding ---------------------------------------- */ /* Returns a pointer to the default encoding (UTF-8) of the |