Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e12b696

Browse files
committed
Clarified InvalidWriteError doc comment
1 parent 5a47f44 commit e12b696

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/configparser.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,9 +376,9 @@ def __repr__(self):
376376
return "<UNNAMED_SECTION>"
377377

378378
class InvalidWriteError(Error):
379-
"""Raised when attempting to write data that would cause file .ini corruption.
380-
ex: writing a key which begins with the section header pattern would
381-
read back as a new section """
379+
"""Raised when attempting to write data that the parser would read back differently.
380+
ex: writing a key which begins with the section header pattern would read back as a
381+
new section """
382382

383383
def __init__(self, msg=''):
384384
Error.__init__(self, msg)

0 commit comments

Comments
 (0)