Commit f255ad7
Replace soft deprecated PyBytes_FromStringAndSize(NULL, n) with
PyBytes_FromStringAndSize(str, n) so marshal can get bytes singleton.
(cherry picked from commit 658612a)
Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent af0798e commit f255ad7
3 files changed
Lines changed: 12 additions & 6 deletions
File tree
- Lib/test
- Misc/NEWS.d/next/Library
- Python
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
119 | 127 | | |
120 | 128 | | |
121 | 129 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1294 | 1294 | | |
1295 | 1295 | | |
1296 | 1296 | | |
1297 | | - | |
1298 | | - | |
1299 | | - | |
1300 | 1297 | | |
1301 | 1298 | | |
1302 | | - | |
1303 | 1299 | | |
1304 | 1300 | | |
1305 | | - | |
1306 | | - | |
| 1301 | + | |
| 1302 | + | |
1307 | 1303 | | |
1308 | 1304 | | |
1309 | 1305 | | |
| |||
0 commit comments