diff options
author | Benjamin Peterson <benjamin@python.org> | 2013-04-16 01:38:25 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2013-04-16 01:38:25 (GMT) |
commit | 51ce29c530f598d306de27724875cf37007422fc (patch) | |
tree | 19945854f2cc2905ace4793d1f118307fc00aed2 /Modules | |
parent | 3034efdd298ad5f94a61f9f0e8ab0fee1d2d212e (diff) | |
download | cpython-51ce29c530f598d306de27724875cf37007422fc.zip cpython-51ce29c530f598d306de27724875cf37007422fc.tar.gz cpython-51ce29c530f598d306de27724875cf37007422fc.tar.bz2 |
remove pointless code (closes #17738)
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; |