Kaydet (Commit) 209ad95b authored tarafından Tim Peters's avatar Tim Peters

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

üst c23d18a9
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment