summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2020-09-10 17:29:31 -0600
committerCharles Harris <charlesr.harris@gmail.com>2020-09-10 17:51:51 -0600
commit46fd645bc147bf1dc7a91d6774ff87330a051917 (patch)
treeb2ca53eca253905d0200b99b56cde3cf224b1bb0
parent997114d6fe00a37c0f1e7fff976785fc2474917f (diff)
downloadnumpy-46fd645bc147bf1dc7a91d6774ff87330a051917.tar.gz
MAINT: Replace PyStringObject by PyBytesObject.
This replaces the npy_3kcompat macro PyStringObject with its definition.
-rw-r--r--numpy/f2py/cfuncs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/f2py/cfuncs.py b/numpy/f2py/cfuncs.py
index 2bd0ee2ee..b3a734e3d 100644
--- a/numpy/f2py/cfuncs.py
+++ b/numpy/f2py/cfuncs.py
@@ -438,7 +438,7 @@ cppmacros['GETSTRFROMPYTUPLE'] = """\
goto capi_fail;\\
if (PyBytes_Check(rv_cb_str)) {\\
str[len-1]='\\0';\\
- STRINGCOPYN((str),PyString_AS_STRING((PyStringObject*)rv_cb_str),(len));\\
+ STRINGCOPYN((str),PyString_AS_STRING((PyBytesObject*)rv_cb_str),(len));\\
} else {\\
PRINTPYOBJERR(rv_cb_str);\\
PyErr_SetString(#modulename#_error,\"string object expected\");\\