Репозитории ALT
S: | 2.7.18-alt11 |
5.1: | 2.5.5-alt0.M51.1 |
4.1: | 2.5.4-alt0.M41.1 |
4.0: | 2.4.5-alt0.M40.1 |
3.0: | 2.4.1-alt5 |
Группа :: Разработка/Python
Пакет: python
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: python-2.5.1-listdir.patch
Скачать
Скачать
--- Python-2.5.1/Modules/posixmodule.c.orig 2007-04-04 14:30:56.000000000 -0400
+++ Python-2.5.1/Modules/posixmodule.c 2008-06-14 17:35:47.000000000 -0400
@@ -2160,7 +2160,6 @@
struct dirent *ep;
int arg_is_unicode = 1;
- errno = 0;
if (!PyArg_ParseTuple(args, "U:listdir", &v)) {
arg_is_unicode = 0;
PyErr_Clear();
@@ -2176,6 +2175,7 @@
return NULL;
}
for (;;) {
+ errno = 0;
Py_BEGIN_ALLOW_THREADS
ep = readdir(dirp);
Py_END_ALLOW_THREADS