diff options
author | Matti Picus <matti.picus@gmail.com> | 2020-08-20 15:55:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-20 15:55:55 +0300 |
commit | eaa59b4f04a0c75091e332afa95a304eddcd93ab (patch) | |
tree | 7ae5b7c4b2426b07f3d4a9899be9887d3853bb2e /numpy/f2py/rules.py | |
parent | 64619c55896dad1927afe78c0702a58abf0d038f (diff) | |
parent | 434d2f141d7e473040effdba37e29ffd3b75a25c (diff) | |
download | numpy-eaa59b4f04a0c75091e332afa95a304eddcd93ab.tar.gz |
Merge pull request #17068 from charris/cleanup-pystring_fromstring-usage
MAINT, BUG: Remove uses of PyString_FromString.
Diffstat (limited to 'numpy/f2py/rules.py')
-rwxr-xr-x | numpy/f2py/rules.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/f2py/rules.py b/numpy/f2py/rules.py index 56f2033ff..a14f60194 100755 --- a/numpy/f2py/rules.py +++ b/numpy/f2py/rules.py @@ -202,7 +202,7 @@ PyMODINIT_FUNC PyInit_#modulename#(void) { \tif (PyErr_Occurred()) \t\t{PyErr_SetString(PyExc_ImportError, \"can't initialize module #modulename# (failed to import numpy)\"); return m;} \td = PyModule_GetDict(m); -\ts = PyString_FromString(\"$R""" + """evision: $\"); +\ts = PyUnicode_FromString(\"$R""" + """evision: $\"); \tPyDict_SetItemString(d, \"__version__\", s); \tPy_DECREF(s); \ts = PyUnicode_FromString( |