equal
deleted
inserted
replaced
611 PyObject *stat, *pypath; |
611 PyObject *stat, *pypath; |
612 struct stat st; |
612 struct stat st; |
613 int ret, kind; |
613 int ret, kind; |
614 char *path; |
614 char *path; |
615 |
615 |
|
616 /* With a large file count or on a slow filesystem, |
|
617 don't block signals for long (issue4878). */ |
|
618 if ((i % 1000) == 999 && PyErr_CheckSignals() == -1) |
|
619 goto bail; |
|
620 |
616 pypath = PySequence_GetItem(names, i); |
621 pypath = PySequence_GetItem(names, i); |
617 if (!pypath) |
622 if (!pypath) |
618 goto bail; |
623 goto bail; |
619 path = PyString_AsString(pypath); |
624 path = PyString_AsString(pypath); |
620 if (path == NULL) { |
625 if (path == NULL) { |