Message232533
Catching TypeError on len() looks as an ugly test to check if body is a string. Why not doing the opposite: first to call fileno() and call AttributeError? Or even use hasattr(body, "fileno")? |
|
Date |
User |
Action |
Args |
2014-12-12 12:12:06 | vstinner | set | recipients:
+ vstinner, ishimoto, orsenthil, tim.golden, Ramchandra Apte, tzs, lemanyk1, demian.brecht |
2014-12-12 12:12:05 | vstinner | set | messageid: <1418386326.0.0.593764216401.issue15267@psf.upfronthosting.co.za> |
2014-12-12 12:12:05 | vstinner | link | issue15267 messages |
2014-12-12 12:12:05 | vstinner | create | |
|