]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41193: Ignore OSError in readline write_history() (GH-21279)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 2 Jul 2020 11:02:08 +0000 (04:02 -0700)
committerGitHub <noreply@github.com>
Thu, 2 Jul 2020 11:02:08 +0000 (04:02 -0700)
commit53d2b715d10e5c81cb9c86fd25e88ace4e41bc25
tree24927d8bb7b97fdd9fba668818ca58dcdf60031a
parente73896241e55f452656fd8070eb79f344091bca0
bpo-41193: Ignore OSError in readline write_history() (GH-21279)

The write_history() atexit function of the readline completer now
ignores any OSError to ignore error if the filesystem is read-only,
instead of only ignoring FileNotFoundError and PermissionError.
(cherry picked from commit 0ab917e07ed64c6bfde6f6e791f9b28acc97b510)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/site.py
Misc/NEWS.d/next/Library/2020-07-02-11-53-45.bpo-41193.8-Tnql.rst [new file with mode: 0644]