summaryrefslogtreecommitdiffstats
path: root/Modules/_sre/sre.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_sre/sre.c')
-rw-r--r--Modules/_sre/sre.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_sre/sre.c b/Modules/_sre/sre.c
index 32f91af..2c86f88 100644
--- a/Modules/_sre/sre.c
+++ b/Modules/_sre/sre.c
@@ -2944,7 +2944,7 @@ pattern_hash(PatternObject *self)
return -1;
}
- hash2 = _Py_HashBytes(self->code, sizeof(self->code[0]) * self->codesize);
+ hash2 = Py_HashBuffer(self->code, sizeof(self->code[0]) * self->codesize);
hash ^= hash2;
hash ^= self->flags;