Commit 644c530
Pin remaining deepcopy and copy.copy paths for pickle-guard classes
The __reduce__ raise should already cover all three operations
(pickle.dumps, copy.copy, copy.deepcopy — the latter two route
through __reduce_ex__(2) which delegates to __reduce__). Only
DqliteConnection / ConnectionPool had the full three-way matrix
pinned; ClusterClient was missing deepcopy and DqliteProtocol was
missing both copy.copy and copy.deepcopy.
Pin the gaps so a future "raise from __reduce_ex__ only on
protocol >= 2" regression or a custom __copy__ / __deepcopy__
accidentally added to one of these classes is caught.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent a95d15e commit 644c530
1 file changed
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
79 | 84 | | |
80 | 85 | | |
81 | 86 | | |
| |||
89 | 94 | | |
90 | 95 | | |
91 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
0 commit comments