diff options
author | Łukasz Langa <lukasz@langa.pl> | 2013-06-23 17:12:12 (GMT) |
---|---|---|
committer | Łukasz Langa <lukasz@langa.pl> | 2013-06-23 17:12:12 (GMT) |
commit | 82276964c8c0b99d86adb8eff0230f1d24982be3 (patch) | |
tree | e51174c53d19e20a2a4ef18e2ca3444fb51401c9 /Lib/configparser.py | |
parent | fcce2024ea97c76e25adf9ff45f72a9f0d431ac3 (diff) | |
parent | f9b4eb4d04609c6cb0f56edfd1ca3d15b349eadf (diff) | |
download | cpython-82276964c8c0b99d86adb8eff0230f1d24982be3.zip cpython-82276964c8c0b99d86adb8eff0230f1d24982be3.tar.gz cpython-82276964c8c0b99d86adb8eff0230f1d24982be3.tar.bz2 |
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 708553d..794f857 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 ") |