[Python-checkins] cpython: Remove redundant check fro md5module.
christian.heimes
python-checkins at python.org
Thu Apr 16 17:29:26 CEST 2015
https://hg.python.org/cpython/rev/5612dc5e6af9
changeset: 95692:5612dc5e6af9
user: Christian Heimes <christian at python.org>
date: Thu Apr 16 17:29:11 2015 +0200
summary:
Remove redundant check fro md5module.
CID 1294331 (#1 of 1): Identical code for different branches (IDENTICAL_BRANCHES)
files:
Modules/md5module.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/Modules/md5module.c b/Modules/md5module.c
--- a/Modules/md5module.c
+++ b/Modules/md5module.c
@@ -350,13 +350,8 @@
{
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;
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list