Skip to content

Commit f0acb93

Browse files
committed
_hashlib_HASH_alloc -> new_hash_object
1 parent 6d7c5b6 commit f0acb93

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Modules/_hashopenssl.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ get_openssl_evp_md(PyObject *module, PyObject *digestmod,
512512
}
513513

514514
static HASHobject *
515-
_hashlib_HASH_alloc(PyTypeObject *type)
515+
new_hash_object(PyTypeObject *type)
516516
{
517517
HASHobject *retval = PyObject_New(HASHobject, type);
518518
if (retval == NULL) {
@@ -586,7 +586,7 @@ _hashlib_HASH_copy_impl(HASHobject *self)
586586
{
587587
HASHobject *newobj;
588588

589-
if ((newobj = _hashlib_HASH_alloc(Py_TYPE(self))) == NULL)
589+
if ((newobj = new_hash_object(Py_TYPE(self))) == NULL)
590590
return NULL;
591591

592592
if (!_hashlib_HASH_copy_locked(self, newobj->ctx)) {
@@ -992,7 +992,7 @@ _hashlib_HASH(PyObject *module, const char *digestname, PyObject *data_obj,
992992
type = get_hashlib_state(module)->HASH_type;
993993
}
994994

995-
self = _hashlib_HASH_alloc(type);
995+
self = new_hash_object(type);
996996
if (self == NULL) {
997997
goto exit;
998998
}

0 commit comments

Comments
 (0)