diff -r 9fcfdb53e8af Modules/zipimport.c --- a/Modules/zipimport.c Thu Nov 26 23:52:34 2015 +0200 +++ b/Modules/zipimport.c Sat Nov 28 09:43:33 2015 -0600 @@ -1276,22 +1276,16 @@ static PyObject * compile_source(PyObject *pathname, PyObject *source) { - PyObject *code, *fixed_source, *pathbytes; - - pathbytes = PyUnicode_EncodeFSDefault(pathname); - if (pathbytes == NULL) - return NULL; + PyObject *code, *fixed_source; fixed_source = normalize_line_endings(source); if (fixed_source == NULL) { - Py_DECREF(pathbytes); return NULL; } - code = Py_CompileString(PyBytes_AsString(fixed_source), - PyBytes_AsString(pathbytes), - Py_file_input); - Py_DECREF(pathbytes); + code = Py_CompileStringObject(PyBytes_AsString(fixed_source), + pathname, Py_file_input, NULL, -1); + Py_DECREF(fixed_source); return code; }