summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-04-13 18:08:45 (GMT)
committerGuido van Rossum <guido@python.org>1998-04-13 18:08:45 (GMT)
commitb19e2a383c7e7b702a50508f42c94642b9047ec3 (patch)
tree1db0b4f16a030fa8fc8ea728cc206f9a5351d526 /Lib
parentc4f1ca1967ef15c3a9491dd672d0e79603550dba (diff)
downloadcpython-b19e2a383c7e7b702a50508f42c94642b9047ec3.zip
cpython-b19e2a383c7e7b702a50508f42c94642b9047ec3.tar.gz
cpython-b19e2a383c7e7b702a50508f42c94642b9047ec3.tar.bz2
Whoops! Add a missing 'instantiated = 1' to load_inst(); otherwise it
would still try to call the class...
Diffstat (limited to 'Lib')
-rw-r--r--Lib/pickle.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/pickle.py b/Lib/pickle.py
index a5f4b29..bf73599 100644
--- a/Lib/pickle.py
+++ b/Lib/pickle.py
@@ -607,6 +607,7 @@ class Unpickler:
try:
value = _EmptyClass()
value.__class__ = klass
+ instantiated = 1
except RuntimeError:
# In restricted execution, assignment to inst.__class__ is
# prohibited