mirror of
https://github.com/python/cpython.git
synced 2025-11-29 14:31:30 +00:00
Remove redundant check fro md5module.
CID 1294331 (#1 of 1): Identical code for different branches (IDENTICAL_BRANCHES)
This commit is contained in:
parent
e8e4283cec
commit
29fbd21d73
1 changed files with 2 additions and 7 deletions
|
|
@ -350,13 +350,8 @@ MD5Type_copy_impl(MD5object *self)
|
||||||
{
|
{
|
||||||
MD5object *newobj;
|
MD5object *newobj;
|
||||||
|
|
||||||
if (Py_TYPE(self) == &MD5type) {
|
if ((newobj = newMD5object())==NULL)
|
||||||
if ( (newobj = newMD5object())==NULL)
|
return NULL;
|
||||||
return NULL;
|
|
||||||
} else {
|
|
||||||
if ( (newobj = newMD5object())==NULL)
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
newobj->hash_state = self->hash_state;
|
newobj->hash_state = self->hash_state;
|
||||||
return (PyObject *)newobj;
|
return (PyObject *)newobj;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue