Commit 805c109
Restore Constants pickle migration shim, correct its version history
The shim in Constants.__setstate__ that skips the legacy
suffixes_prefixes_titles property key (needed to load pickles written
before the #167 getstate/setstate rewrite) was removed with a commit
message claiming "1.2.1 shipped with a compatibility shim." That's
incorrect: diffing v1.2.0..v1.2.1 shows zero changes to this file, and
the shim was only ever added/removed within the unreleased 1.3.0
branch. There is no 1.2.1-era shim to bridge through.
Restore the shim (and its regression test) so pickles from any
released version through 1.2.1 load directly under 1.3.0+, with
comments correctly attributing it to 1.3.0. Remove the release_log.rst
upgrade note describing a nonexistent "upgrade to 1.2.1 first" path,
since it's no longer needed.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent b2f0cf2 commit 805c109
3 files changed
Lines changed: 36 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | 4 | | |
11 | 5 | | |
12 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
535 | 535 | | |
536 | 536 | | |
537 | 537 | | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
538 | 548 | | |
539 | 549 | | |
540 | 550 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
169 | 195 | | |
170 | 196 | | |
171 | 197 | | |
| |||
0 commit comments