[pypy-commit] pypy virtual-arguments: prove one more thing

fijal noreply at buildbot.pypy.org
Wed Jul 18 16:42:21 CEST 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: virtual-arguments
Changeset: r56166:f235fe1e8377
Date: 2012-07-18 16:42 +0200
http://bitbucket.org/pypy/pypy/changeset/f235fe1e8377/

Log:	prove one more thing

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
@@ -148,11 +148,12 @@
         self.write_end = -1
 
     def _init(self, space):
-        if self.buffer_size <= 0:
+        buf_size = self.buffer_size
+        if buf_size <= 0:
             raise OperationError(space.w_ValueError, space.wrap(
                 "buffer size must be strictly positive"))
 
-        self.buffer = ['\0'] * self.buffer_size
+        self.buffer = ['\0'] * buf_size
 
         self.lock = TryLock(space)
 


More information about the pypy-commit mailing list