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

Skip to content

Commit 3638e67

Browse files
committed
Clarified _validate_key_contents() doc comment
1 parent 9cc3506 commit 3638e67

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/configparser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1223,7 +1223,7 @@ def _convert_to_boolean(self, value):
12231223

12241224
def _validate_key_contents(self, key):
12251225
"""Raises an InvalidInputError for any keys containing
1226-
delimiters or a leading '['"""
1226+
delimiters or that match the section header pattern"""
12271227
if re.match(self.SECTCRE, key):
12281228
raise InvalidInputError("Cannot write keys matching section pattern")
12291229
for delim in self._delimiters:

0 commit comments

Comments
 (0)