summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/md5module.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/Modules/md5module.c b/Modules/md5module.c
index 25b163c..00ee6c3 100644
--- a/Modules/md5module.c
+++ b/Modules/md5module.c
@@ -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;