diff options
author | Victor Stinner <vstinner@python.org> | 2024-08-30 15:42:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-30 15:42:27 (GMT) |
commit | d8e69b2c1b3388c31a6083cfdd9dc9afff5b9860 (patch) | |
tree | eb78955c066631fdd52b00ddfd26d4fb676f9e36 /Python/import.c | |
parent | 3d60dfbe1755e00ab20d0ee81281886be77ad5da (diff) | |
download | cpython-d8e69b2c1b3388c31a6083cfdd9dc9afff5b9860.zip cpython-d8e69b2c1b3388c31a6083cfdd9dc9afff5b9860.tar.gz cpython-d8e69b2c1b3388c31a6083cfdd9dc9afff5b9860.tar.bz2 |
gh-122854: Add Py_HashBuffer() function (#122855)
Diffstat (limited to 'Python/import.c')
-rw-r--r-- | Python/import.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/import.c b/Python/import.c index f4c0d54..c9212ec 100644 --- a/Python/import.c +++ b/Python/import.c @@ -1174,7 +1174,7 @@ hashtable_key_from_2_strings(PyObject *str1, PyObject *str2, const char sep) static Py_uhash_t hashtable_hash_str(const void *key) { - return _Py_HashBytes(key, strlen((const char *)key)); + return Py_HashBuffer(key, strlen((const char *)key)); } static int |