mirror of
https://github.com/yaml/pyyaml.git
synced 2025-10-19 11:03:18 +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
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue