diff options
author | Pantelis Antoniou <pantelis.antoniou@konsulko.com> | 2021-09-22 20:07:36 +0300 |
---|---|---|
committer | Ingy döt Net <ingy@ingy.net> | 2021-09-23 14:42:00 -0700 |
commit | fecae105d743cea9ad6a43ebe9a9974842fdf425 (patch) | |
tree | 6162679d3b4122eb6130ce0d8b74750094ec39e2 | |
parent | 82db2835588c06b3db60b4f0d14dea9e0e02c697 (diff) | |
download | pyyaml-git-fecae105d743cea9ad6a43ebe9a9974842fdf425.tar.gz |
Define PyString_GetExact as Bytes
Puzzling, but this is the expected behaviour
Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
-rw-r--r-- | yaml/_yaml.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yaml/_yaml.h b/yaml/_yaml.h index 05ce69d..4c41967 100644 --- a/yaml/_yaml.h +++ b/yaml/_yaml.h @@ -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 |