Atsuo Ishimoto <ishim...@gembook.org> added the comment: Patch updated.
- SameFileError is now derived from EnvironmentError. - Fixed documentation. - Fixed test method name. I investigated this patch: - shutil.copyfile() and shutil.copy() raises SameFileError if source and destination are same file. - shutil.move() never raises SameFileError. shutil.move() may raise exception if source and dest are same file, but it depends on underlying implementation of platform. Linux and Windows don't raise exception in this case. - I am opposed to change shutil.move() to raise SameFileError, because such incompatible change can break existing applilcations. ---------- Added file: http://bugs.python.org/file26401/issue1492704_new_2.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1492704> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com