summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
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