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

Skip to content

Commit 3a11e71

Browse files
committed
%s -> %r correction after review by Éric Araujo
1 parent 4d0d471 commit 3a11e71

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
@@ -653,7 +653,7 @@ def add_section(self, section):
653653
already exists. Raise ValueError if name is DEFAULT.
654654
"""
655655
if section == self.default_section:
656-
raise ValueError('Invalid section name: %s' % section)
656+
raise ValueError('Invalid section name: %r' % section)
657657

658658
if section in self._sections:
659659
raise DuplicateSectionError(section)

0 commit comments

Comments
 (0)