projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28e401e
)
Fix regression under Windows following b75b41237380 (from issue #13392)
author
Antoine Pitrou
<solipsis@pitrou.net>
Tue, 15 Nov 2011 19:40:55 +0000
(20:40 +0100)
committer
Antoine Pitrou
<solipsis@pitrou.net>
Tue, 15 Nov 2011 19:40:55 +0000
(20:40 +0100)
Python/import.c
patch
|
blob
|
history
diff --git
a/Python/import.c
b/Python/import.c
index 3c3e504e284adaf80087ff6f8445c8ad089925c6..64197d7a48e72ba9e88b2e774ce517a9a3d1c763 100644
(file)
--- a/
Python/import.c
+++ b/
Python/import.c
@@
-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');