Mercurial > cpython-lru_cache-weakref
comparison Python/import.c @ 73574:12940d9f8031
Fix regression under Windows following b75b41237380 (from issue #13392)
| author | Antoine Pitrou <solipsis@pitrou.net> |
|---|---|
| date | Tue, 15 Nov 2011 20:40:55 +0100 |
| parents | b75b41237380 |
| children | cea2d28f2855 |
comparison
equal
deleted
inserted
replaced
| 73573:b75b41237380 | 73574:12940d9f8031 |
|---|---|
| 1265 PyUnicode_MAX_CHAR_VALUE(cpathname)); | 1265 PyUnicode_MAX_CHAR_VALUE(cpathname)); |
| 1266 if (cpathname_tmp == NULL) { | 1266 if (cpathname_tmp == NULL) { |
| 1267 PyErr_Clear(); | 1267 PyErr_Clear(); |
| 1268 return; | 1268 return; |
| 1269 } | 1269 } |
| 1270 if (PyUnicode_CopyCharacters(cpathname_tmp, 0, | |
| 1271 cpathname, 0, cpathname_len) < 0) { | |
| 1272 PyErr_Clear(); | |
| 1273 return; | |
| 1274 } | |
| 1270 PyUnicode_WriteChar(cpathname_tmp, cpathname_len + 0, '.'); | 1275 PyUnicode_WriteChar(cpathname_tmp, cpathname_len + 0, '.'); |
| 1271 PyUnicode_WriteChar(cpathname_tmp, cpathname_len + 1, 't'); | 1276 PyUnicode_WriteChar(cpathname_tmp, cpathname_len + 1, 't'); |
| 1272 PyUnicode_WriteChar(cpathname_tmp, cpathname_len + 2, 'm'); | 1277 PyUnicode_WriteChar(cpathname_tmp, cpathname_len + 2, 'm'); |
| 1273 PyUnicode_WriteChar(cpathname_tmp, cpathname_len + 3, 'p'); | 1278 PyUnicode_WriteChar(cpathname_tmp, cpathname_len + 3, 'p'); |
| 1274 (void)DeleteFileW(PyUnicode_AS_UNICODE(cpathname_tmp)); | 1279 (void)DeleteFileW(PyUnicode_AS_UNICODE(cpathname_tmp)); |
