[pypy-commit] pypy default: fix translation

bdkearns noreply at buildbot.pypy.org
Fri Aug 29 18:59:21 CEST 2014


Author: Brian Kearns <bdkearns at gmail.com>
Branch: 
Changeset: r73178:5ddeaa6b6665
Date: 2014-08-29 12:58 -0400
http://bitbucket.org/pypy/pypy/changeset/5ddeaa6b6665/

Log:	fix translation

diff --git a/rpython/rlib/rfile.py b/rpython/rlib/rfile.py
--- a/rpython/rlib/rfile.py
+++ b/rpython/rlib/rfile.py
@@ -206,6 +206,7 @@
     def write(self, value):
         self._check_closed()
         self._check_writing()
+        assert value is not None
         ll_value = rffi.get_nonmovingbuffer(value)
         try:
             # note that since we got a nonmoving buffer, it is either raw


More information about the pypy-commit mailing list