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 maliubiao@gmail.com
Recipients maliubiao@gmail.com
Date 2012-07-26.21:03:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1343336601.05.0.224760800644.issue15461@psf.upfronthosting.co.za>
In-reply-to
Content
the code:
import os,stat
mode=os.stat("a broken link file").st_mode
then i got :OSError: [Errno 2] No such file or directory.

why not just treat a broken link as something existing and don't report any error.
History
Date User Action Args
2012-07-26 21:03:21maliubiao@gmail.comsetrecipients: + maliubiao@gmail.com
2012-07-26 21:03:21maliubiao@gmail.comsetmessageid: <1343336601.05.0.224760800644.issue15461@psf.upfronthosting.co.za>
2012-07-26 21:03:20maliubiao@gmail.comlinkissue15461 messages
2012-07-26 21:03:20maliubiao@gmail.comcreate