diff options
author | Christopher Baines <mail@cbaines.net> | 2016-05-22 09:51:54 +0200 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2016-09-03 12:20:26 +0100 |
commit | e37142e8aaa903920d4f13a5ef66a352618e65c6 (patch) | |
tree | 67033a5e8c487879e4dc97c5c889cc1d068ef120 /pyguile.c | |
parent | 48722c4dd56e3609e3f29beff1a54416feab080c (diff) | |
download | pyguile-master.tar pyguile-master.tar.gz |
As gh_scm2newstr is deprecated.
Diffstat (limited to 'pyguile.c')
-rw-r--r-- | pyguile.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -341,7 +341,7 @@ python_eval(SCM sobj,SCM smode) ? Py_file_input : Py_eval_input; - char *pstr = gh_scm2newstr(sobj,NULL); + char *pstr = scm_to_locale_string(sobj); if (NULL == pstr) { scm_memory_error("python-eval"); // NOT COVERED BY TESTS //return(SCM_UNSPECIFIED); @@ -414,7 +414,7 @@ python_import(SCM smodulename) scm_wrong_type_arg("python-import",SCM_ARG1,smodulename); } else { - char *mname = gh_scm2newstr(smodulename,NULL); + char *mname = scm_to_locale_string(smodulename); PyObject *pmodule = PyImport_ImportModule(mname); PyObject *pexception = PyErr_Occurred(); if (pexception) { |