[issue20093] Wrong OSError message from os.rename() when dst is a non-empty directory

2014-07-26 Thread Matthias Klose
Matthias Klose added the comment: 3.4.0 has this fixed. resolutions in http://bugs.python.org/issue16074 and http://bugs.python.org/issue20517 -- nosy: +doko resolution: -> fixed status: open -> closed ___ Python tracker

[issue20093] Wrong OSError message from os.rename() when dst is a non-empty directory

2014-01-02 Thread Jakub Wilk
Changes by Jakub Wilk : -- nosy: +jwilk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue20093] Wrong OSError message from os.rename() when dst is a non-empty directory

2013-12-29 Thread Dmitry Shachnev
Dmitry Shachnev added the comment: This is a result of http://hg.python.org/cpython/rev/6903f5214e99. Looks like we should check the error code and conditionally set the file name to either src or dst. -- nosy: +haypo, mitya57 ___ Python tracker

[issue20093] Wrong OSError message from os.rename() when dst is a non-empty directory

2013-12-28 Thread Jason Gerard DeRose
New submission from Jason Gerard DeRose: Under Python 3.3, if renaming a directory with `os.rename()` when the destination is an existing, non-empty directory, like this: os.rename('/tmp/foo', '/tmp/bar') You'll get an OSError with a message like this: OSError: [Errno 39] Directory not empty: