load_appends(): replaced .append() loop with an .extend().

This commit is contained in:
Tim Peters 2003-01-28 01:44:45 +00:00
parent c23d18a955
commit 209ad95b00
1 changed files with 1 additions and 3 deletions

View File

@ -1021,9 +1021,7 @@ class Unpickler:
stack = self.stack
mark = self.marker()
list = stack[mark - 1]
for i in range(mark + 1, len(stack)):
list.append(stack[i])
list.extend(stack[mark + 1:])
del stack[mark:]
dispatch[APPENDS] = load_appends