Commit 8ad809b
Remove dead _one_shot parameter from _make_iterencode
On main, _one_shot=True in iterencode() selected the C encoder path via
"if _one_shot and c_make_encoder is not None". On this branch the C path
is always taken when available, so _one_shot never controls anything.
_make_iterencode always returned _iterencode_once regardless of _one_shot,
so the parameter was dead there too. Remove it.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 319f666 commit 8ad809b
1 file changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
247 | | - | |
248 | 246 | | |
249 | 247 | | |
250 | 248 | | |
| |||
276 | 274 | | |
277 | 275 | | |
278 | 276 | | |
279 | | - | |
| 277 | + | |
280 | 278 | | |
281 | 279 | | |
282 | 280 | | |
283 | | - | |
| 281 | + | |
284 | 282 | | |
285 | 283 | | |
286 | 284 | | |
| |||
0 commit comments