mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +00:00
This commit is contained in:
parent
e1857579f8
commit
d43ab05916
1 changed files with 0 additions and 7 deletions
|
|
@ -11865,7 +11865,6 @@ ScandirIterator_finalize(ScandirIterator *iterator)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Py_CLEAR(iterator->path.object);
|
|
||||||
path_cleanup(&iterator->path);
|
path_cleanup(&iterator->path);
|
||||||
|
|
||||||
/* Restore the saved exception. */
|
/* Restore the saved exception. */
|
||||||
|
|
@ -11969,12 +11968,6 @@ posix_scandir(PyObject *self, PyObject *args, PyObject *kwargs)
|
||||||
path_converter, &iterator->path))
|
path_converter, &iterator->path))
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
/* path_converter doesn't keep path.object around, so do it
|
|
||||||
manually for the lifetime of the iterator here (the refcount
|
|
||||||
is decremented in ScandirIterator_dealloc)
|
|
||||||
*/
|
|
||||||
Py_XINCREF(iterator->path.object);
|
|
||||||
|
|
||||||
#ifdef MS_WINDOWS
|
#ifdef MS_WINDOWS
|
||||||
iterator->first_time = 1;
|
iterator->first_time = 1;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue