Author: Philip Jenvey <pjen...@underboss.org>
Branch: 
Changeset: r63470:09b70e01d3c6
Date: 2013-04-17 18:56 -0700
http://bitbucket.org/pypy/pypy/changeset/09b70e01d3c6/

Log:    the annotator has deemed these necessary

diff --git a/rpython/rtyper/lltypesystem/rffi.py 
b/rpython/rtyper/lltypesystem/rffi.py
--- a/rpython/rtyper/lltypesystem/rffi.py
+++ b/rpython/rtyper/lltypesystem/rffi.py
@@ -1059,6 +1059,7 @@
             self.buf = str2charp(value)
         else:
             self.buf = lltype.nullptr(CCHARP.TO)
+    __init__._annenforceargs_ = [None, str]
     def __enter__(self):
         return self.buf
     def __exit__(self, *args):
@@ -1072,6 +1073,7 @@
             self.buf = unicode2wcharp(value)
         else:
             self.buf = lltype.nullptr(CWCHARP.TO)
+    __init__._annenforceargs_ = [None, unicode]
     def __enter__(self):
         return self.buf
     def __exit__(self, *args):
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to