remove pointless code (closes #17738)
This commit is contained in:
parent
3034efdd29
commit
51ce29c530
|
@ -320,13 +320,8 @@ SHA1_copy(SHA1object *self, PyObject *unused)
|
||||||
{
|
{
|
||||||
SHA1object *newobj;
|
SHA1object *newobj;
|
||||||
|
|
||||||
if (Py_TYPE(self) == &SHA1type) {
|
if ((newobj = newSHA1object()) == NULL)
|
||||||
if ( (newobj = newSHA1object())==NULL)
|
return NULL;
|
||||||
return NULL;
|
|
||||||
} else {
|
|
||||||
if ( (newobj = newSHA1object())==NULL)
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
newobj->hash_state = self->hash_state;
|
newobj->hash_state = self->hash_state;
|
||||||
return (PyObject *)newobj;
|
return (PyObject *)newobj;
|
||||||
|
|
Loading…
Reference in New Issue