Message108297
| Author |
orsenthil |
| Recipients |
ezio.melotti, giampaolo.rodola, l0nwlf, orsenthil, pitrou, r.david.murray |
| Date |
2010年06月21日.18:44:53 |
| SpamBayes Score |
0.009577556 |
| Marked as misclassified |
No |
| Message-id |
<20100621183827.GB10192@remy> |
| In-reply-to |
<1276977655.35.0.854993397938.issue9018@psf.upfronthosting.co.za> |
| Content |
On Sat, Jun 19, 2010 at 08:00:55PM +0000, Shashwat Anand wrote:
> Why on Mac OS X, it should return s.lower() ?
That is is because some file systems on Mac OS X are case-sensitive.
> def normcase(s):
> """Normalize case of pathname. Has no effect under Posix"""
> if s is None:
> raise AttributeError
> return s
It should be a TypeError, not AttributeError. (Attached Test cases
checks it properly) |
|