summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2003-01-28 01:44:45 (GMT)
committerTim Peters <tim.peters@gmail.com>2003-01-28 01:44:45 (GMT)
commit209ad95b000ccabd75972c1b2281aeefad4bc354 (patch)
treec31480b23d13dcb7f2e13c3a23f05041944233ec /Lib
parentc23d18a955db63723a21d1e602cc8edae0940b8e (diff)
downloadcpython-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.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