Skip to content

Commit

Permalink
Py_FileSystemDefaultEncoding is deprecated in 3.12+
Browse files Browse the repository at this point in the history
Thus avoid it using the same mechanism that's already being used in
similar situations.

Signed-off-by: Rodrigo Tobar <[email protected]>
  • Loading branch information
rtobar committed Jun 9, 2024
1 parent 772528e commit 944561d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/c/_cffi_backend.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,10 @@
# define USE_WRITEUNRAISABLEMSG
#endif

#if PY_VERSION_HEX >= 0x030c0000
# define Py_FileSystemDefaultEncoding PyConfig.filesystem_encoding
#endif

/************************************************************/

/* base type flag: exactly one of the following: */
Expand Down

0 comments on commit 944561d

Please sign in to comment.