mirror of
https://gitee.com/openharmony/third_party_pyyaml
synced 2024-11-23 07:20:31 +00:00
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:
parent
82db283558
commit
fecae105d7
@ -7,9 +7,9 @@
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#ifndef PyString_CheckExact
|
// really puzzling, but, not being a string is required
|
||||||
|
#undef PyString_CheckExact
|
||||||
#define PyString_CheckExact PyBytes_CheckExact
|
#define PyString_CheckExact PyBytes_CheckExact
|
||||||
#endif
|
|
||||||
#define PyString_AS_STRING PyBytes_AS_STRING
|
#define PyString_AS_STRING PyBytes_AS_STRING
|
||||||
#define PyString_GET_SIZE PyBytes_GET_SIZE
|
#define PyString_GET_SIZE PyBytes_GET_SIZE
|
||||||
#define PyString_FromStringAndSize PyBytes_FromStringAndSize
|
#define PyString_FromStringAndSize PyBytes_FromStringAndSize
|
||||||
|
Loading…
Reference in New Issue
Block a user