[pypy-commit] pypy stdlib-2.7.3: translation fix
amauryfa
noreply at buildbot.pypy.org
Fri Jun 15 23:12:11 CEST 2012
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: stdlib-2.7.3
Changeset: r55690:6f1d3f378072
Date: 2012-06-15 23:11 +0200
http://bitbucket.org/pypy/pypy/changeset/6f1d3f378072/
Log: translation fix
diff --git a/pypy/module/_io/interp_bufferedio.py b/pypy/module/_io/interp_bufferedio.py
--- a/pypy/module/_io/interp_bufferedio.py
+++ b/pypy/module/_io/interp_bufferedio.py
@@ -684,6 +684,7 @@
self.pos = newpos
self.write_pos = 0
available = self.buffer_size - self.write_end
+ assert available >= 0
if size <= available:
# Everything can be buffered
for i in range(size):
More information about the pypy-commit
mailing list