Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ca819c3

Browse files
committed
merge 3.1 (#14509)
2 parents c0aa9ee + f6622c8 commit ca819c3

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

Objects/bytesobject.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,9 @@ bytes_hash(PyBytesObject *a)
875875
register unsigned char *p;
876876
register Py_hash_t x;
877877

878+
#ifdef Py_DEBUG
878879
assert(_Py_HashSecret_Initialized);
880+
#endif
879881
if (a->ob_shash != -1)
880882
return a->ob_shash;
881883
len = Py_SIZE(a);

Objects/unicodeobject.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7673,7 +7673,9 @@ unicode_hash(PyUnicodeObject *self)
76737673
Py_UNICODE *p;
76747674
Py_hash_t x;
76757675

7676+
#ifdef Py_DEBUG
76767677
assert(_Py_HashSecret_Initialized);
7678+
#endif
76777679
if (self->hash != -1)
76787680
return self->hash;
76797681
len = Py_SIZE(self);

0 commit comments

Comments
 (0)