%s -> %r correction after review by Éric Araujo
This commit is contained in:
parent
4d0d471a80
commit
3a11e717aa
|
@ -653,7 +653,7 @@ class RawConfigParser(MutableMapping):
|
||||||
already exists. Raise ValueError if name is DEFAULT.
|
already exists. Raise ValueError if name is DEFAULT.
|
||||||
"""
|
"""
|
||||||
if section == self.default_section:
|
if section == self.default_section:
|
||||||
raise ValueError('Invalid section name: %s' % section)
|
raise ValueError('Invalid section name: %r' % section)
|
||||||
|
|
||||||
if section in self._sections:
|
if section in self._sections:
|
||||||
raise DuplicateSectionError(section)
|
raise DuplicateSectionError(section)
|
||||||
|
|
Loading…
Reference in New Issue