diff options
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/sha1module.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/Modules/sha1module.c b/Modules/sha1module.c index 09b87ef..f824bb3 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; |