diff options
Diffstat (limited to 'source/blender/python/intern/bpy_capi_utils.c')
-rw-r--r-- | source/blender/python/intern/bpy_capi_utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/python/intern/bpy_capi_utils.c b/source/blender/python/intern/bpy_capi_utils.c index 57dc4c0a679..b2670161d92 100644 --- a/source/blender/python/intern/bpy_capi_utils.c +++ b/source/blender/python/intern/bpy_capi_utils.c @@ -136,7 +136,7 @@ bool BPy_errors_to_report_ex(ReportList *reports, RPT_ERROR, TIP_("%s: %s\nlocation: %s:%d\n"), error_prefix, - _PyUnicode_AsString(pystring), + PyUnicode_AsUTF8(pystring), filename, lineno); @@ -144,12 +144,12 @@ bool BPy_errors_to_report_ex(ReportList *reports, fprintf(stderr, TIP_("%s: %s\nlocation: %s:%d\n"), error_prefix, - _PyUnicode_AsString(pystring), + PyUnicode_AsUTF8(pystring), filename, lineno); } else { - BKE_reportf(reports, RPT_ERROR, "%s: %s", error_prefix, _PyUnicode_AsString(pystring)); + BKE_reportf(reports, RPT_ERROR, "%s: %s", error_prefix, PyUnicode_AsUTF8(pystring)); } Py_DECREF(pystring); |