mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
%s -> %r correction after review by Éric Araujo
This commit is contained in:
parent
4d0d471a80
commit
3a11e717aa
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue