Skip to content

Commit fe8e7dd

Browse files
committed
Fix double parentheses in constructor keyword argument error messages
1 parent d8682e7 commit fe8e7dd

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/_xxhash.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ PYXXH32_vectorcall(PyObject *type, PyObject *const *args,
664664
Py_buffer buf;
665665
unsigned long long raw_seed;
666666

667-
if (_parse_fastcall_args(args, nargs, kwnames, "xxhash.xxh32()", 0,
667+
if (_parse_fastcall_args(args, nargs, kwnames, "xxhash.xxh32", 0,
668668
&buf, &raw_seed) < 0)
669669
return NULL;
670670
seed = (XXH32_hash_t)raw_seed;
@@ -1118,7 +1118,7 @@ PYXXH64_vectorcall(PyObject *type, PyObject *const *args,
11181118
Py_buffer buf;
11191119
unsigned long long raw_seed;
11201120

1121-
if (_parse_fastcall_args(args, nargs, kwnames, "xxhash.xxh64()", 0,
1121+
if (_parse_fastcall_args(args, nargs, kwnames, "xxhash.xxh64", 0,
11221122
&buf, &raw_seed) < 0)
11231123
return NULL;
11241124
seed = (XXH64_hash_t)raw_seed;
@@ -1470,7 +1470,7 @@ PYXXH3_64_vectorcall(PyObject *type, PyObject *const *args,
14701470
Py_buffer buf;
14711471
unsigned long long raw_seed;
14721472

1473-
if (_parse_fastcall_args(args, nargs, kwnames, "xxhash.xxh3_64()", 0,
1473+
if (_parse_fastcall_args(args, nargs, kwnames, "xxhash.xxh3_64", 0,
14741474
&buf, &raw_seed) < 0)
14751475
return NULL;
14761476
seed = (XXH64_hash_t)raw_seed;
@@ -1829,7 +1829,7 @@ PYXXH3_128_vectorcall(PyObject *type, PyObject *const *args,
18291829
Py_buffer buf;
18301830
unsigned long long raw_seed;
18311831

1832-
if (_parse_fastcall_args(args, nargs, kwnames, "xxhash.xxh3_128()", 0,
1832+
if (_parse_fastcall_args(args, nargs, kwnames, "xxhash.xxh3_128", 0,
18331833
&buf, &raw_seed) < 0)
18341834
return NULL;
18351835
seed = (XXH64_hash_t)raw_seed;

0 commit comments

Comments
 (0)