Source

pypy / lib_pypy / _marshal.py

Diff from to

File lib_pypy/_marshal.py

 def _read(self, n):
     pos = self.bufpos
     newpos = pos + n
+    if newpos > len(self.bufstr): raise EOFError
     ret = self.bufstr[pos : newpos]
     self.bufpos = newpos
     return ret