summaryrefslogtreecommitdiff
path: root/numpy/f2py/rules.py
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2020-08-20 15:55:55 +0300
committerGitHub <noreply@github.com>2020-08-20 15:55:55 +0300
commiteaa59b4f04a0c75091e332afa95a304eddcd93ab (patch)
tree7ae5b7c4b2426b07f3d4a9899be9887d3853bb2e /numpy/f2py/rules.py
parent64619c55896dad1927afe78c0702a58abf0d038f (diff)
parent434d2f141d7e473040effdba37e29ffd3b75a25c (diff)
downloadnumpy-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-xnumpy/f2py/rules.py2
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(