summaryrefslogtreecommitdiffstats
path: root/Lib/pickle.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/pickle.py')
-rw-r--r--Lib/pickle.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/pickle.py b/Lib/pickle.py
index 484f468..7984b98 100644
--- a/Lib/pickle.py
+++ b/Lib/pickle.py
@@ -356,6 +356,10 @@ class Unpickler:
dispatch = {}
+ def load_eof(self):
+ raise EOFError
+ dispatch[''] = load_eof
+
def load_persid(self):
pid = self.readline()[:-1]
self.stack.append(self.persisent_load(pid))