summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/next
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-07-02 11:02:16 (GMT)
committerGitHub <noreply@github.com>2020-07-02 11:02:16 (GMT)
commit0b4c87ef8f88a4c4c325e964fa4919cef3997605 (patch)
tree7fcf899bde13883717bf1bd2ede504f9976f7f2b /Misc/NEWS.d/next
parentecfecc2d6ce88ae71c783f0465a508c6a1b2f2b6 (diff)
downloadcpython-0b4c87ef8f88a4c4c325e964fa4919cef3997605.zip
cpython-0b4c87ef8f88a4c4c325e964fa4919cef3997605.tar.gz
cpython-0b4c87ef8f88a4c4c325e964fa4919cef3997605.tar.bz2
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>
Diffstat (limited to 'Misc/NEWS.d/next')
-rw-r--r--Misc/NEWS.d/next/Library/2020-07-02-11-53-45.bpo-41193.8-Tnql.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-07-02-11-53-45.bpo-41193.8-Tnql.rst b/Misc/NEWS.d/next/Library/2020-07-02-11-53-45.bpo-41193.8-Tnql.rst
new file mode 100644
index 0000000..8807d9c
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2020-07-02-11-53-45.bpo-41193.8-Tnql.rst
@@ -0,0 +1,4 @@
+The ``write_history()`` atexit function of the readline completer now
+ignores any :exc:`OSError` to ignore error if the filesystem is read-only,
+instead of only ignoring :exc:`FileNotFoundError` and
+:exc:`PermissionError`.