| commit | 28e4ddd963511a739b0b726bfc96da4035928e4e | [log] [tgz] |
|---|---|---|
| author | Tim Peters <[email protected]> | Fri Jan 31 22:27:17 2003 +0000 |
| committer | Tim Peters <[email protected]> | Fri Jan 31 22:27:17 2003 +0000 |
| tree | b7f91afc377aff401a1909842c5625d5d5897e00 | |
| parent | 12dfe10ba45a8117ade736914923caacbb8abe18 [diff] |
The various datetime object __setstate__() methods are no longer public (pickling no longer needs them, and immutable objects shouldn't have visible __setstate__() methods regardless). Rearranged the code to put the internal setstate functions in the constructor sections. Repaired the timedelta reduce() method, which was still producing stuff that required a public timedelta.__setstate__() when unpickling.