From 209ad95b000ccabd75972c1b2281aeefad4bc354 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Tue, 28 Jan 2003 01:44:45 +0000 Subject: [PATCH] load_appends(): replaced .append() loop with an .extend(). --- Lib/pickle.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Lib/pickle.py b/Lib/pickle.py index b6fb41961a4..62f7a5849a7 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