summaryrefslogtreecommitdiffstats
path: root/Lib/pickle.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/pickle.py')
-rw-r--r--Lib/pickle.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/pickle.py b/Lib/pickle.py
index b6fb419..62f7a58 100644
--- a/Lib/pickle.py
+++ b/Lib/pickle.py
@@ -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