mirror of
https://github.com/python/cpython.git
synced 2025-07-15 23:35:23 +00:00
Issue #23908: os functions now reject paths with embedded null character
on Windows instead of silently truncate them. Removed no longer used _PyUnicode_HasNULChars().
This commit is contained in:
commit
7e9d1d1a1b
6 changed files with 50 additions and 28 deletions
|
@ -2060,12 +2060,6 @@ PyAPI_FUNC(int) PyUnicode_Contains(
|
|||
PyObject *element /* Element string */
|
||||
);
|
||||
|
||||
/* Checks whether the string contains any NUL characters. */
|
||||
|
||||
#ifndef Py_LIMITED_API
|
||||
PyAPI_FUNC(int) _PyUnicode_HasNULChars(PyObject *);
|
||||
#endif
|
||||
|
||||
/* Checks whether argument is a valid identifier. */
|
||||
|
||||
PyAPI_FUNC(int) PyUnicode_IsIdentifier(PyObject *s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue