From fecae105d743cea9ad6a43ebe9a9974842fdf425 Mon Sep 17 00:00:00 2001 From: Pantelis Antoniou Date: Wed, 22 Sep 2021 20:07:36 +0300 Subject: [PATCH] Define PyString_GetExact as Bytes Puzzling, but this is the expected behaviour Signed-off-by: Pantelis Antoniou --- yaml/_yaml.h | 4 ++-- 1 file 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