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 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:01Brian.Jonessetrecipients: + Brian.Jones
2012-03-13 00:14:01Brian.Jonessetmessageid: <1331597641.5.0.510268852561.issue14278@psf.upfronthosting.co.za>
2012-03-13 00:14:00Brian.Joneslinkissue14278 messages
2012-03-13 00:14:00Brian.Jonescreate