Commit f83f139
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 871bd46 commit f83f139
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 | |
|---|---|---|---|
| |||
1308 | 1308 | | |
1309 | 1309 | | |
1310 | 1310 | | |
1311 | | - | |
1312 | | - | |
1313 | | - | |
1314 | 1311 | | |
1315 | 1312 | | |
1316 | | - | |
1317 | 1313 | | |
1318 | 1314 | | |
1319 | | - | |
1320 | | - | |
| 1315 | + | |
| 1316 | + | |
1321 | 1317 | | |
1322 | 1318 | | |
1323 | 1319 | | |
| |||
0 commit comments