diff options
| author | Charles Harris <charlesr.harris@gmail.com> | 2020-09-10 18:03:58 -0600 |
|---|---|---|
| committer | Charles Harris <charlesr.harris@gmail.com> | 2020-09-10 18:03:58 -0600 |
| commit | fcca6e7950e43a5d8ff88ec4bb22bb436bcc833e (patch) | |
| tree | 1a377f0cb77977c29d3a972127ed35fdac36d3c7 | |
| parent | 46fd645bc147bf1dc7a91d6774ff87330a051917 (diff) | |
| download | numpy-fcca6e7950e43a5d8ff88ec4bb22bb436bcc833e.tar.gz | |
MAINT: Replace PyString_Check with PyBytes_Check in numpy.i.
Replace the npy_3kcompat PyString_Check with its definition. This is
done separately for the tools/swig/numpy.i file as it might be
problematic.
| -rw-r--r-- | tools/swig/numpy.i | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/swig/numpy.i b/tools/swig/numpy.i index 8416e82f3..6b69ce96e 100644 --- a/tools/swig/numpy.i +++ b/tools/swig/numpy.i @@ -114,7 +114,7 @@ if (py_obj == NULL ) return "C NULL value"; if (py_obj == Py_None ) return "Python None" ; if (PyCallable_Check(py_obj)) return "callable" ; - if (PyString_Check( py_obj)) return "string" ; + if (PyBytes_Check( py_obj)) return "string" ; if (PyInt_Check( py_obj)) return "int" ; if (PyFloat_Check( py_obj)) return "float" ; if (PyDict_Check( py_obj)) return "dict" ; |
