Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d0d471 commit 3a11e71Copy full SHA for 3a11e71
1 file changed
Lib/configparser.py
@@ -653,7 +653,7 @@ def add_section(self, section):
653
already exists. Raise ValueError if name is DEFAULT.
654
"""
655
if section == self.default_section:
656
- raise ValueError('Invalid section name: %s' % section)
+ raise ValueError('Invalid section name: %r' % section)
657
658
if section in self._sections:
659
raise DuplicateSectionError(section)
0 commit comments