Text: buffer from text, optional length return arg

No functional changes (currently unused).
This commit is contained in:
2019-07-11 14:18:39 +10:00
parent 676543d91f
commit a7ac40888f
4 changed files with 27 additions and 11 deletions

View File

@@ -457,7 +457,7 @@ static bool python_script_exec(
fn_dummy_py = PyC_UnicodeFromByte(fn_dummy);
buf = txt_to_buf(text);
buf = txt_to_buf(text, NULL);
text->compiled = Py_CompileStringObject(buf, fn_dummy_py, Py_file_input, NULL, -1);
MEM_freeN(buf);