summaryrefslogtreecommitdiffstats
path: root/Modules/_io
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-06-01 06:56:35 (GMT)
committerGitHub <noreply@github.com>2023-06-01 06:56:35 (GMT)
commit8ed705c083e8e5ff37649d998a8b1524ec921519 (patch)
tree88bdd612236308b4585d851e168c94dc1ddf5bf0 /Modules/_io
parentf332594dd47947612e1e5d2faf287930552a5110 (diff)
downloadcpython-8ed705c083e8e5ff37649d998a8b1524ec921519.zip
cpython-8ed705c083e8e5ff37649d998a8b1524ec921519.tar.gz
cpython-8ed705c083e8e5ff37649d998a8b1524ec921519.tar.bz2
gh-105156: Deprecate the old Py_UNICODE type in C API (#105157)
Deprecate the old Py_UNICODE and PY_UNICODE_TYPE types in the C API: use wchar_t instead. Replace Py_UNICODE with wchar_t in multiple C files. Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Diffstat (limited to 'Modules/_io')
-rw-r--r--Modules/_io/fileio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_io/fileio.c b/Modules/_io/fileio.c
index 30944fc..005c9ff 100644
--- a/Modules/_io/fileio.c
+++ b/Modules/_io/fileio.c
@@ -231,7 +231,7 @@ _io_FileIO___init___impl(fileio *self, PyObject *nameobj, const char *mode,
/*[clinic end generated code: output=23413f68e6484bbd input=588aac967e0ba74b]*/
{
#ifdef MS_WINDOWS
- Py_UNICODE *widename = NULL;
+ wchar_t *widename = NULL;
#else
const char *name = NULL;
#endif