commit | b19e2a383c7e7b702a50508f42c94642b9047ec3 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Mon Apr 13 18:08:45 1998 +0000 |
committer | Guido van Rossum <guido@python.org> | Mon Apr 13 18:08:45 1998 +0000 |
tree | 1db0b4f16a030fa8fc8ea728cc206f9a5351d526 | |
parent | c4f1ca1967ef15c3a9491dd672d0e79603550dba [diff] [blame] |
Whoops! Add a missing 'instantiated = 1' to load_inst(); otherwise it would still try to call the class...
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 @@ try: value = _EmptyClass() value.__class__ = klass + instantiated = 1 except RuntimeError: # In restricted execution, assignment to inst.__class__ is # prohibited