From 51ce29c530f598d306de27724875cf37007422fc Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Mon, 15 Apr 2013 21:38:25 -0400 Subject: [PATCH] remove pointless code (closes #17738) --- Modules/sha1module.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Modules/sha1module.c b/Modules/sha1module.c index 09b87ef2502..f824bb3b5ab 100644 --- a/Modules/sha1module.c +++ b/Modules/sha1module.c @@ -320,13 +320,8 @@ SHA1_copy(SHA1object *self, PyObject *unused) { SHA1object *newobj; - if (Py_TYPE(self) == &SHA1type) { - if ( (newobj = newSHA1object())==NULL) - return NULL; - } else { - if ( (newobj = newSHA1object())==NULL) - return NULL; - } + if ((newobj = newSHA1object()) == NULL) + return NULL; newobj->hash_state = self->hash_state; return (PyObject *)newobj;