]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40130: _PyUnicode_AsKind() should not be exported. (GH-19265)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 1 Apr 2020 12:41:49 +0000 (15:41 +0300)
committerGitHub <noreply@github.com>
Wed, 1 Apr 2020 12:41:49 +0000 (15:41 +0300)
commit17b4733f2ff0a4abc06e8c745755c06fc32942dd
treec2c4d1144db8e4276ff0ebc74304d9008dcd10c1
parent3ef4a7e5a7c29e17d5152d1fa6ceeb1fee269699
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.
Include/cpython/unicodeobject.h
Objects/unicodeobject.c