diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2019-07-25 15:20:10 -0400 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2019-07-25 15:43:32 -0400 |
commit | 7ba5e123f93e120ffd365cd5eab7553c82e513aa (patch) | |
tree | f0a97f8f05c92acc70f2de6e019387ed8c0ef554 | |
parent | 93d76ea60bbe5e4c2802101e5f92a49b3f75690d (diff) | |
download | trace-cmd-7ba5e123f93e120ffd365cd5eab7553c82e513aa.tar.gz |
trace-cmd: Replace PyString_FromString() with PyUnicode_FromString()
As PyString_FromString() is no longer available with Python 3, use
PyUnicode_FromString() which is available in both Python 2 and 3.
Link: http://lkml.kernel.org/r/20190725174138.3724131-2-chutzpah@gentoo.org
Reported-by: Patrick McLean <patrick.mclean@sony.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
-rw-r--r-- | plugins/plugin_python.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/plugin_python.c b/plugins/plugin_python.c index e725ad84..196b8256 100644 --- a/plugins/plugin_python.c +++ b/plugins/plugin_python.c @@ -81,7 +81,7 @@ int TEP_PLUGIN_LOADER(struct tep_handle *pevent) } else Py_DECREF(res); - str = PyString_FromString("pevent"); + str = PyUnicode_FromString("pevent"); if (!str) return -ENOMEM; |