Skip to content

bpo-35652 Add use_srcentry parameter to shutil.copytree() II #11425

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 7 commits into from
Closed

bpo-35652 Add use_srcentry parameter to shutil.copytree() II #11425

wants to merge 7 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Jan 3, 2019

Currently it is decided if to use the srcentry in the copy_function by checking if the copy_function is copy() or copy2(). This will fail if the copy_function is a modified copy() or copy2() function. To control if the copy_function gets a srcentry or srcname parameter, added the use_srcentry parameter.

Fixes the behaviour which was introduced in #7874 (bpo-33695).

Successor of #11421. I hope everything is okay now.

https://bugs.python.org/issue35652

@ghost
Copy link
Author

ghost commented Feb 24, 2019

The behaviour is wanted.
See msg336452.

@ghost ghost closed this Feb 24, 2019
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants