Commit 5e94fa4
committed
bpo-31537: Fix bug in readline documentation example code
Use `get_current_history_length` to get the current length of the history,
not `get_history_length`. This fixes an issue where the example code's
call to `append_history_file` in the `save` function would never actually
write any lines to the file.1 parent 4d3f084 commit 5e94fa4
File tree
2 files changed
+4
-2
lines changed- Doc/library
- Misc/NEWS.d/next/Documentation
2 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | | - | |
| 315 | + | |
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | | - | |
| 321 | + | |
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
0 commit comments