Define PyString_GetExact as Bytes
Puzzling, but this is the expected behaviour
Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
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