mirror of
https://github.com/python/cpython.git
synced 2026-01-06 23:42:34 +00:00
merge 3.3
This commit is contained in:
commit
48a2e7c357
1 changed files with 2 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue