diff options
author | Tim Peters <tim.peters@gmail.com> | 2003-01-28 01:44:45 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2003-01-28 01:44:45 (GMT) |
commit | 209ad95b000ccabd75972c1b2281aeefad4bc354 (patch) | |
tree | c31480b23d13dcb7f2e13c3a23f05041944233ec /Lib | |
parent | c23d18a955db63723a21d1e602cc8edae0940b8e (diff) | |
download | cpython-209ad95b000ccabd75972c1b2281aeefad4bc354.zip cpython-209ad95b000ccabd75972c1b2281aeefad4bc354.tar.gz cpython-209ad95b000ccabd75972c1b2281aeefad4bc354.tar.bz2 |
load_appends(): replaced .append() loop with an .extend().
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/pickle.py | 4 |
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 |