Skip to content

Commit ce60a08

Browse files
authored
Apply suggestions from code review
1 parent e1422ab commit ce60a08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/configparser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,12 +318,12 @@ def append(self, lineno, line):
318318
self.message += f'\n\t[line {lineno:2d}]: {line!r}'
319319

320320
def combine(self, others):
321-
messages = []
321+
messages = [self.message]
322322
for other in others:
323323
for lineno, line in other.errors:
324324
self.errors.append((lineno, line))
325325
messages.append(f'\n\t[line {lineno:2d}]: {line!r}')
326-
self.message += "".join(messages)
326+
self.message = "".join(messages)
327327
return self
328328

329329
@staticmethod

0 commit comments

Comments
 (0)