From d2f74fadb06e398ea3955bea430fbda33fd29f30 Mon Sep 17 00:00:00 2001 From: Jack Williams Date: Sun, 8 Sep 2019 19:34:09 -0700 Subject: [PATCH] Revert pepy change (#87) --- python/pepy.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/python/pepy.cpp b/python/pepy.cpp index ce11d57..64b71e8 100644 --- a/python/pepy.cpp +++ b/python/pepy.cpp @@ -885,15 +885,6 @@ int resource_callback(void *cbd, resource r) { * The tuple item order is important here. It is passed into the * section type initialization and parsed there. */ -#if PY_MAJOR_VERSION >= 3 - tuple = Py_BuildValue("u#u#u#IIIIIIO&", - r.type_str.c_str(), - r.type_str.length() / 2, - r.name_str.c_str(), - r.name_str.length() / 2, - r.lang_str.c_str(), - r.lang_str.length() / 2, -#else tuple = Py_BuildValue("s#s#s#IIIIIIO&", r.type_str.c_str(), r.type_str.length(), @@ -901,7 +892,6 @@ int resource_callback(void *cbd, resource r) { r.name_str.length(), r.lang_str.c_str(), r.lang_str.length(), -#endif r.type, r.name, r.lang,