diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2020-03-24 18:31:27 +0100 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2020-03-31 11:27:31 +0200 |
commit | 6c92857ee6efab6e6ade68b142b6bd147ed84ceb (patch) | |
tree | 97bf12b47fec8c5d28e45d226b761be49dbf4b8e | |
parent | 3b46028af9ed488171fa0881b87f4478791989db (diff) | |
download | cython-6c92857ee6efab6e6ade68b142b6bd147ed84ceb.tar.gz |
Remove redundant type check.
-rw-r--r-- | Cython/Utility/FunctionArguments.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Utility/FunctionArguments.c b/Cython/Utility/FunctionArguments.c index 38cbc2523..61a879980 100644 --- a/Cython/Utility/FunctionArguments.c +++ b/Cython/Utility/FunctionArguments.c @@ -211,7 +211,7 @@ static int __Pyx_ParseOptionalKeywords( name = first_kw_arg; #if PY_MAJOR_VERSION < 3 - if (likely(PyString_CheckExact(key)) || likely(PyString_Check(key))) { + if (likely(PyString_Check(key))) { while (*name) { if ((CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**name) == PyString_GET_SIZE(key)) && _PyString_Eq(**name, key)) { |