Message155535
| Author |
Brian.Jones |
| Recipients |
Brian.Jones |
| Date |
2012年03月13日.00:14:00 |
| SpamBayes Score |
5.658713e-08 |
| Marked as misclassified |
No |
| Message-id |
<1331597641.5.0.510268852561.issue14278@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
In email.utils.localtime, there's a variable 'offset' that will only exist if time.daylight evaluates to True. If time.daylight evaluates to False, you'll get an UnboundLocalError, because 'offset' is being referenced without being assigned.
The attached patch fixes that issue, adds several tests, and also refactors an existing test containing 4-5 assertions into a test for each assertion. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年03月13日 00:14:01 | Brian.Jones | set | recipients:
+ Brian.Jones |
| 2012年03月13日 00:14:01 | Brian.Jones | set | messageid: <1331597641.5.0.510268852561.issue14278@psf.upfronthosting.co.za> |
| 2012年03月13日 00:14:00 | Brian.Jones | link | issue14278 messages |
| 2012年03月13日 00:14:00 | Brian.Jones | create |
|