mirror of https://github.com/python/cpython
load_appends(): replaced .append() loop with an .extend().
This commit is contained in:
parent
c23d18a955
commit
209ad95b00
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue