Skip to content

Commit

Permalink
app_python3: use PyBytes_AS_STRING() instead of PyString_AsString()
Browse files Browse the repository at this point in the history
- PyString_AsString() is no longer in Python3 API

(cherry picked from commit 48bb059)
  • Loading branch information
miconda committed May 3, 2019
1 parent 8dcb244 commit c19ab2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/app_python3/apy_kemi.c
Expand Up @@ -777,8 +777,8 @@ PyObject *sr_apy_kemi_exec_func(PyObject *self, PyObject *args, int idx)
" took too long [%u ms] (file:%s func:%s line:%d)\n",
(ket->mname.len>0)?ket->mname.s:"",
(ket->mname.len>0)?".":"", ket->fname.s, tdiff,
(pframe)?PyString_AsString(pframe->f_code->co_filename):"",
(pframe)?PyString_AsString(pframe->f_code->co_name):"",
(pframe)?PyBytes_AS_STRING(pframe->f_code->co_filename):"",
(pframe)?PyBytes_AS_STRING(pframe->f_code->co_name):"",
(pframe)?PyCode_Addr2Line(pframe->f_code, pframe->f_lasti):0);
}
}
Expand Down

0 comments on commit c19ab2e

Please sign in to comment.