Commit 51ce29c5 authored by Benjamin Peterson's avatar Benjamin Peterson

remove pointless code (closes #17738)

parent 3034efdd
......@@ -320,13 +320,8 @@ SHA1_copy(SHA1object *self, PyObject *unused)
{
SHA1object *newobj;
if (Py_TYPE(self) == &SHA1type) {
if ( (newobj = newSHA1object())==NULL)
return NULL;
} else {
if ( (newobj = newSHA1object())==NULL)
return NULL;
}
if ((newobj = newSHA1object()) == NULL)
return NULL;
newobj->hash_state = self->hash_state;
return (PyObject *)newobj;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment