Message 57077 - Python tracker

Message57077

Author giampaolo.rodola
Recipients giampaolo.rodola
Date 2007-11-02.23:13:52
SpamBayes Score 0.20231427
Marked as misclassified No
Message-id <1194045233.33.0.855077145409.issue1376@psf.upfronthosting.co.za>
In-reply-to
Content
uu module on line 53 erroneously tries to catch an AttributeError
exception type.

            try:
                mode = os.stat(in_file).st_mode
            except AttributeError:
                pass

This is not correct since os.stat(), as far as I know, should raise
OSError exceptions only.
This would turn in an error in case we pass a "broken" symlink as
in_file argument.
History
Date User Action Args
2007-11-02 23:13:53giampaolo.rodolasetspambayes_score: 0.202314 -> 0.20231427
recipients: + giampaolo.rodola
2007-11-02 23:13:53giampaolo.rodolasetspambayes_score: 0.202314 -> 0.202314
messageid: <1194045233.33.0.855077145409.issue1376@psf.upfronthosting.co.za>
2007-11-02 23:13:53giampaolo.rodolalinkissue1376 messages
2007-11-02 23:13:52giampaolo.rodolacreate