summaryrefslogtreecommitdiffstats
path: root/Modules/_hashopenssl.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-10-22 13:05:23 (GMT)
committerChristian Heimes <christian@cheimes.de>2013-10-22 13:05:23 (GMT)
commit327dd732ce2b7df001b0a052e3464c85f0c85128 (patch)
tree503582cbb9364f320bc9754340c7a6a2dde23e40 /Modules/_hashopenssl.c
parente53510726b337762d005984eeab0b266c60b779d (diff)
downloadcpython-327dd732ce2b7df001b0a052e3464c85f0c85128.zip
cpython-327dd732ce2b7df001b0a052e3464c85f0c85128.tar.gz
cpython-327dd732ce2b7df001b0a052e3464c85f0c85128.tar.bz2
Issue #18742: Expose the internal hash type object for ABCs.
Diffstat (limited to 'Modules/_hashopenssl.c')
-rw-r--r--Modules/_hashopenssl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Modules/_hashopenssl.c b/Modules/_hashopenssl.c
index 222e5ef..423b3b3 100644
--- a/Modules/_hashopenssl.c
+++ b/Modules/_hashopenssl.c
@@ -872,10 +872,8 @@ PyInit__hashlib(void)
return NULL;
}
-#if HASH_OBJ_CONSTRUCTOR
- Py_INCREF(&EVPtype);
+ Py_INCREF((PyObject *)&EVPtype);
PyModule_AddObject(m, "HASH", (PyObject *)&EVPtype);
-#endif
/* these constants are used by the convenience constructors */
INIT_CONSTRUCTOR_CONSTANTS(md5);