[issue39390] shutil.copytree - 3.8 changed argument types of the ignore callback

Manuel Barkhau report at bugs.python.org
Fri Jan 24 11:02:12 EST 2020


Manuel Barkhau <mbarkhau at gmail.com> added the comment:

> If you pass a string, you will get a string, so existing code will continue to work as before.

Somebody might have code that is running against a flat directory and have written their ignore function expecting to get a pathlib.Path, because that's the only case they encountered. This change would break their code and so would an upgrade to 3.9 with the patch that was just merged.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39390>
_______________________________________


More information about the Python-bugs-list mailing list