This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients serhiy.storchaka, terry.reedy, v+python
Date 2012-09-28.18:32:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1348857178.21.0.553877158959.issue16074@psf.upfronthosting.co.za>
In-reply-to
Content
I confirm the bug.

>>> import os
>>> os.rename('non-existent-name', 'new-name')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
FileNotFoundError: [Errno 2] No such file or directory: 'new-name'

It obviously should be "No such file or directory: 'non-existent-name'".
History
Date User Action Args
2012-09-28 18:32:58serhiy.storchakasetrecipients: + serhiy.storchaka, terry.reedy, v+python
2012-09-28 18:32:58serhiy.storchakasetmessageid: <1348857178.21.0.553877158959.issue16074@psf.upfronthosting.co.za>
2012-09-28 18:32:58serhiy.storchakalinkissue16074 messages
2012-09-28 18:32:58serhiy.storchakacreate