Remove redundant check fro md5module.

CID 1294331 (#1 of 1): Identical code for different branches (IDENTICAL_BRANCHES)
This commit is contained in:
Christian Heimes 2015-04-16 17:29:11 +02:00
parent e8e4283cec
commit 29fbd21d73
1 changed files with 2 additions and 7 deletions

View File

@ -350,13 +350,8 @@ MD5Type_copy_impl(MD5object *self)
{
MD5object *newobj;
if (Py_TYPE(self) == &MD5type) {
if ( (newobj = newMD5object())==NULL)
return NULL;
} else {
if ( (newobj = newMD5object())==NULL)
return NULL;
}
if ((newobj = newMD5object())==NULL)
return NULL;
newobj->hash_state = self->hash_state;
return (PyObject *)newobj;