Define PyString_GetExact as Bytes

Puzzling, but this is the expected behaviour

Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
This commit is contained in:
Pantelis Antoniou 2021-09-22 20:07:36 +03:00 committed by Ingy döt Net
parent 82db283558
commit fecae105d7

View File

@ -7,9 +7,9 @@
#else
#ifndef PyString_CheckExact
// really puzzling, but, not being a string is required
#undef PyString_CheckExact
#define PyString_CheckExact PyBytes_CheckExact
#endif
#define PyString_AS_STRING PyBytes_AS_STRING
#define PyString_GET_SIZE PyBytes_GET_SIZE
#define PyString_FromStringAndSize PyBytes_FromStringAndSize