update fileobject.rs for Python 3.12

This commit is contained in:
David Hewitt 2023-07-21 13:41:34 +01:00
parent 5d7dfe2e95
commit acb1bf7c0a
1 changed files with 4 additions and 1 deletions

View File

@ -26,10 +26,13 @@ extern "C" {
#[cfg_attr(windows, link(name = "pythonXY"))] #[cfg_attr(windows, link(name = "pythonXY"))]
extern "C" { extern "C" {
#[deprecated(note = "Python 3.12")]
pub static mut Py_FileSystemDefaultEncoding: *const c_char; pub static mut Py_FileSystemDefaultEncoding: *const c_char;
#[deprecated(note = "Python 3.12")]
pub static mut Py_FileSystemDefaultEncodeErrors: *const c_char; pub static mut Py_FileSystemDefaultEncodeErrors: *const c_char;
#[deprecated(note = "Python 3.12")]
pub static mut Py_HasFileSystemDefaultEncoding: c_int; pub static mut Py_HasFileSystemDefaultEncoding: c_int;
// skipped Python 3.7 / ex-non-limited Py_UTF8Mode // skipped 3.12-deprecated Py_UTF8Mode
} }
// skipped _PyIsSelectable_fd // skipped _PyIsSelectable_fd