summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2015-04-16 15:29:11 (GMT)
committerChristian Heimes <christian@python.org>2015-04-16 15:29:11 (GMT)
commit29fbd21d73dfecc1bb05e98d6da7fbab55ad15b4 (patch)
treed40c080da203d01996b00a8164caabe618b9c530 /Modules
parente8e4283cecd99ce7eb07c2786e385d22946e15cd (diff)
downloadcpython-29fbd21d73dfecc1bb05e98d6da7fbab55ad15b4.zip
cpython-29fbd21d73dfecc1bb05e98d6da7fbab55ad15b4.tar.gz
cpython-29fbd21d73dfecc1bb05e98d6da7fbab55ad15b4.tar.bz2
Remove redundant check fro md5module.
CID 1294331 (#1 of 1): Identical code for different branches (IDENTICAL_BRANCHES)
Diffstat (limited to 'Modules')
-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;