From: Tim Peters Date: Tue, 28 Jan 2003 01:44:45 +0000 (+0000) Subject: load_appends(): replaced .append() loop with an .extend(). X-Git-Tag: v2.3c1~2257 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=209ad95b000ccabd75972c1b2281aeefad4bc354;p=thirdparty%2FPython%2Fcpython.git load_appends(): replaced .append() loop with an .extend(). --- diff --git a/Lib/pickle.py b/Lib/pickle.py index b6fb41961a42..62f7a5849a72 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