From b1062fc9d25a2720bfe5ac26151f69ab5f02ba94 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 31 Mar 1998 17:00:46 +0000 Subject: [PATCH] Correct dumb typo found by kjpylint (stack should be self.stack). --- Lib/pickle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/pickle.py b/Lib/pickle.py index f833d866be6..a5f4b29cc77 100644 --- a/Lib/pickle.py +++ b/Lib/pickle.py @@ -693,7 +693,7 @@ class Unpickler: dispatch[POP_MARK] = load_pop_mark def load_dup(self): - self.append(stack[-1]) + self.append(self.stack[-1]) dispatch[DUP] = load_dup def load_get(self):