summaryrefslogtreecommitdiffstats
path: root/Doc/library/configparser.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/configparser.rst')
-rw-r--r--Doc/library/configparser.rst15
1 files changed, 15 insertions, 0 deletions
diff --git a/Doc/library/configparser.rst b/Doc/library/configparser.rst
index ac0f3fc..bb109a9 100644
--- a/Doc/library/configparser.rst
+++ b/Doc/library/configparser.rst
@@ -1244,6 +1244,10 @@ ConfigParser Objects
*space_around_delimiters* is true, delimiters between
keys and values are surrounded by spaces.
+ .. versionchanged:: 3.14
+ Raises InvalidWriteError if this would write a representation which cannot
+ be accurately parsed by a future :meth:`read` call from this parser.
+
.. note::
Comments in the original configuration file are not preserved when
@@ -1459,6 +1463,17 @@ Exceptions
.. versionadded:: 3.14
+.. exception:: InvalidWriteError
+
+ Exception raised when an attempted :meth:`ConfigParser.write` would not be parsed
+ accurately with a future :meth:`ConfigParser.read` call.
+
+ Ex: Writing a key beginning with the :attr:`ConfigParser.SECTCRE` pattern
+ would parse as a section header when read. Attempting to write this will raise
+ this exception.
+
+ .. versionadded:: 3.14
+
.. rubric:: Footnotes
.. [1] Config parsers allow for heavy customization. If you are interested in