Really really really get PyOpenSSL_LongToHex right now
diff --git a/OpenSSL/util.c b/OpenSSL/util.c
index 661bb1d..3859cb8 100644
--- a/OpenSSL/util.c
+++ b/OpenSSL/util.c
@@ -60,6 +60,7 @@
Py_DECREF(list);
}
+#if (PY_VERSION_HEX < 0x02600000)
PyObject* PyOpenSSL_LongToHex(PyObject *o) {
PyObject *hex = NULL;
PyObject *format = NULL;
@@ -77,14 +78,6 @@
goto err;
}
-#ifdef PY3
- {
- PyObject *hexbytes = PyUnicode_AsASCIIString(hex);
- Py_DECREF(hex);
- hex = hexbytes;
- }
-#endif
-
return hex;
err:
@@ -99,3 +92,4 @@
}
return NULL;
}
+#endif