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.
Created on 2012年03月13日 00:14 by Brian.Jones, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| localtime_fix.patch | Brian.Jones, 2012年03月13日 00:14 | patch fixing localtime throwing UnboundLocalError when time.daylight is false. | ||
| Messages (3) | |||
|---|---|---|---|
| msg155535 - (view) | Author: Brian Jones (Brian.Jones) * | Date: 2012年03月13日 00:14 | |
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. |
|||
| msg155659 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2012年03月13日 20:32 | |
Thanks, Brian. (For the record, this is a bug in email6 code that hasn't been checked into trunk yet.) |
|||
| msg155864 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2012年03月15日 06:11 | |
Fixed in the email6 feature branch. Thanks Brian. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:27 | admin | set | github: 58486 |
| 2012年03月15日 06:11:53 | r.david.murray | set | status: open -> closed messages: + msg155864 |
| 2012年03月15日 06:09:34 | r.david.murray | set | type: behavior stage: resolved resolution: fixed assignee: r.david.murray |
| 2012年03月15日 03:42:03 | Brian.Jones | set | nosy:
+ Brian.Jones |
| 2012年03月13日 20:32:44 | r.david.murray | set | messages: + msg155659 |
| 2012年03月13日 17:06:33 | Brian.Jones | set | nosy: + r.david.murray, - Brian.Jones |
| 2012年03月13日 00:14:00 | Brian.Jones | create | |