diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-01-29 17:43:36 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-01-29 17:43:36 (GMT) |
commit | 7ab4af0427a100e1054dea6137381c5dbf843530 (patch) | |
tree | 5675c8aba99f23694645917896e81ce877263d20 /Include/unicodeobject.h | |
parent | cdc878e56298c9da9720f1298a8b780a189ce029 (diff) | |
parent | 1334884ff2f5a3968e6a26157f869b4ca5de189b (diff) | |
download | cpython-7ab4af0427a100e1054dea6137381c5dbf843530.zip cpython-7ab4af0427a100e1054dea6137381c5dbf843530.tar.gz cpython-7ab4af0427a100e1054dea6137381c5dbf843530.tar.bz2 |
Issue #13848: open() and the FileIO constructor now check for NUL characters in the file name.
Patch by Hynek Schlawack.
Diffstat (limited to 'Include/unicodeobject.h')
-rw-r--r-- | Include/unicodeobject.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h index a1e5e35..c706fc2 100644 --- a/Include/unicodeobject.h +++ b/Include/unicodeobject.h @@ -1914,6 +1914,12 @@ 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); |