[pypy-commit] pypy default: help the annotator a little

fijal noreply at buildbot.pypy.org
Mon Jun 2 12:57:32 CEST 2014


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: 
Changeset: r71805:de7fbdacc07c
Date: 2014-06-02 12:56 +0200
http://bitbucket.org/pypy/pypy/changeset/de7fbdacc07c/

Log:	help the annotator a little

diff --git a/rpython/rlib/rStringIO.py b/rpython/rlib/rStringIO.py
--- a/rpython/rlib/rStringIO.py
+++ b/rpython/rlib/rStringIO.py
@@ -73,6 +73,7 @@
         self.__strings.append(buffer)
 
     def __slow_write(self, buffer):
+        assert buffer is not None # help annotator
         p = self.__pos
         assert p >= 0
         endp = p + len(buffer)


More information about the pypy-commit mailing list