Skip to content

Commit 91db566

Browse files
committed
Remove unnecessary comments
1 parent d603aa8 commit 91db566

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Lib/test/test_configparser.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,17 +1139,14 @@ def test_repr_and_str_representation(self):
11391139
keyB = valueB
11401140
"""
11411141
cf = self.newconfig()
1142-
cf.read_string(config_string) # Use a left-aligned string to avoid ParsingError
1143-
cf.optionxform = str # Preserve key casing
1142+
cf.read_string(config_string)
1143+
cf.optionxform = str
11441144

1145-
# Test `repr` representation
11461145
expected_repr = (
11471146
"ConfigParser(default_section='DEFAULT', "
11481147
"interpolation=None)"
11491148
)
11501149
self.assertEqual(repr(cf), expected_repr)
1151-
1152-
# Test `str` representation
11531150
expected_str = (
11541151
"{'Section1': {'key1': 'value1', 'key2': 'value2'}, "
11551152
"'Section2': {'keyA': 'valueA', 'keyB': 'valueB'}}"

0 commit comments

Comments
 (0)