diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-06-23 20:25:40 +0300 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-06-23 20:25:40 +0300 |
commit | e19ee8595d8cceb981d6e3fa320fb53d903bfad3 (patch) | |
tree | 0c70916c6817eca097bc67a54338727a4d0f5bfe /Lib/configparser.py | |
parent | 8eeae2126ca7dd91ae6f10443eda1af5338bccf7 (diff) | |
parent | f9b4eb4d04609c6cb0f56edfd1ca3d15b349eadf (diff) | |
download | cpython-git-e19ee8595d8cceb981d6e3fa320fb53d903bfad3.tar.gz |
Merge heads
Diffstat (limited to 'Lib/configparser.py')
-rw-r--r-- | Lib/configparser.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/configparser.py b/Lib/configparser.py index 6c5aa49bab..fde1c12440 100644 --- a/Lib/configparser.py +++ b/Lib/configparser.py @@ -191,7 +191,7 @@ class DuplicateSectionError(Error): def __init__(self, section, source=None, lineno=None): msg = [repr(section), " already exists"] if source is not None: - message = ["While reading from ", source] + message = ["While reading from ", repr(source)] if lineno is not None: message.append(" [line {0:2d}]".format(lineno)) message.append(": section ") @@ -217,7 +217,7 @@ class DuplicateOptionError(Error): msg = [repr(option), " in section ", repr(section), " already exists"] if source is not None: - message = ["While reading from ", source] + message = ["While reading from ", repr(source)] if lineno is not None: message.append(" [line {0:2d}]".format(lineno)) message.append(": option ") |