File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -1783,7 +1783,6 @@ _hashlib_HMAC_digest_impl(HMACobject *self)
17831783 unsigned char digest [EVP_MAX_MD_SIZE ];
17841784 unsigned int digest_size = _hmac_digest_size (self );
17851785 if (digest_size == 0 ) {
1786- assert (PyErr_Occurred ());
17871786 return NULL ;
17881787 }
17891788 int r = _hmac_digest (self , digest , digest_size );
@@ -1809,7 +1808,6 @@ _hashlib_HMAC_hexdigest_impl(HMACobject *self)
18091808 unsigned char digest [EVP_MAX_MD_SIZE ];
18101809 unsigned int digest_size = _hmac_digest_size (self );
18111810 if (digest_size == 0 ) {
1812- assert (PyErr_Occurred ());
18131811 return NULL ;
18141812 }
18151813 int r = _hmac_digest (self , digest , digest_size );
@@ -1824,7 +1822,6 @@ _hashlib_hmac_get_digest_size(HMACobject *self, void *closure)
18241822{
18251823 unsigned int digest_size = _hmac_digest_size (self );
18261824 if (digest_size == 0 ) {
1827- assert (PyErr_Occurred ());
18281825 return NULL ;
18291826 }
18301827 return PyLong_FromLong (digest_size );
You can’t perform that action at this time.
0 commit comments