[issue26468] shutil.copy2 raises OSError if filesystem doesn't support chmod

2019-09-13 Thread miss-islington
miss-islington added the comment: New changeset c27bcc3b476bbda7958724376189816c4e9d19c4 by Miss Islington (bot) in branch '3.8': bpo-26468: Doc: improve the documentation of shutil.copy2 when it can fail. (GH-13765) https://github.com/python/cpython/commit/c27bcc3b476bbda7958724376189816c4e

[issue26468] shutil.copy2 raises OSError if filesystem doesn't support chmod

2019-09-13 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: I have merged the PR with the change in the documentation, feel free to open a new PR for the other part of this issue. -- versions: +Python 3.8, Python 3.9 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker <

[issue26468] shutil.copy2 raises OSError if filesystem doesn't support chmod

2019-09-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +15721 pull_request: https://github.com/python/cpython/pull/16102 ___ Python tracker ___ __

[issue26468] shutil.copy2 raises OSError if filesystem doesn't support chmod

2019-09-13 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: New changeset 9585f46b97931d2640c3343dfe03aed15beb9fea by Stéphane Wirtel (Windson yang) in branch 'master': bpo-26468: Doc: improve the documentation of shutil.copy2 when it can fail. (GH-13765) https://github.com/python/cpython/commit/9585f46b97931d2640c33

[issue26468] shutil.copy2 raises OSError if filesystem doesn't support chmod

2019-06-28 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: -Jeffrey.Kintscher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue26468] shutil.copy2 raises OSError if filesystem doesn't support chmod

2019-06-02 Thread Windson Yang
Change by Windson Yang : -- keywords: +patch pull_requests: +13651 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13765 ___ Python tracker ___ ___

[issue26468] shutil.copy2 raises OSError if filesystem doesn't support chmod

2019-06-01 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: +Jeffrey.Kintscher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue26468] shutil.copy2 raises OSError if filesystem doesn't support chmod

2016-03-02 Thread Vojtěch Pachol
Vojtěch Pachol added the comment: Actually it is a remote fs mounted via samba. OS is Linux. Tracebacks with Python versions I have: $ python2.7 Python 2.7.11 (default, Jan 11 2016, 21:04:40) [GCC 5.3.1 20160101] on linux2 Type "help", "copyright", "credits" or "license" for more information.

[issue26468] shutil.copy2 raises OSError if filesystem doesn't support chmod

2016-03-02 Thread Eric V. Smith
Eric V. Smith added the comment: I agree that copy2 should not fail because chmod fails. Could you please provide the entire traceback message when it fails (on both 2.7 and 3.4 or 3.5)? And what OS are you running on, and what filesystem? It looks like the error happens because errno=95 (EOPN

[issue26468] shutil.copy2 raises OSError if filesystem doesn't support chmod

2016-03-02 Thread Vojtěch Pachol
New submission from Vojtěch Pachol: `copy2` checks if `os` nodule has `chmod` and then it uses it without thinking. On filesystems that doesn't support `chmod` it ends with OSError: [Errno 95] Operation not supported: which is not acceptable since documentation says "copy2() never return