diff options
author | ?ukasz Langa <lukasz@langa.pl> | 2013-06-23 19:12:12 +0200 |
---|---|---|
committer | ?ukasz Langa <lukasz@langa.pl> | 2013-06-23 19:12:12 +0200 |
commit | bf90927df4fa531265c9464bd04704d0c837699d (patch) | |
tree | 1c6f401a3ce211bad499dacd1c97bad30ff78aca /Lib/configparser.py | |
parent | 76087a844340e65f31fe4d95364097cb57b9d8fb (diff) | |
parent | 791b87eddc2fa5556054e3588533f4da8437ca7f (diff) | |
download | cpython-bf90927df4fa531265c9464bd04704d0c837699d.tar.gz |
Merged fix for issue #18260 from 3.3
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 708553d135..794f857c3f 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 ") |