Commit 1d8f3f45 authored by Antoine Pitrou's avatar Antoine Pitrou

Fix regression under Windows following b75b41237380 (from issue #13392)

parent 28e401e7
......@@ -1267,6 +1267,11 @@ write_compiled_module(PyCodeObject *co, PyObject *cpathname,
PyErr_Clear();
return;
}
if (PyUnicode_CopyCharacters(cpathname_tmp, 0,
cpathname, 0, cpathname_len) < 0) {
PyErr_Clear();
return;
}
PyUnicode_WriteChar(cpathname_tmp, cpathname_len + 0, '.');
PyUnicode_WriteChar(cpathname_tmp, cpathname_len + 1, 't');
PyUnicode_WriteChar(cpathname_tmp, cpathname_len + 2, 'm');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment