[pypy-svn] pypy enable-opts: Fix annotation hlstr

fijal commits-noreply at bitbucket.org
Sun Mar 13 19:42:29 CET 2011


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: enable-opts
Changeset: r42565:1271894919f3
Date: 2011-03-12 22:40 -0500
http://bitbucket.org/pypy/pypy/changeset/1271894919f3/

Log:	Fix annotation hlstr

diff --git a/pypy/rpython/annlowlevel.py b/pypy/rpython/annlowlevel.py
--- a/pypy/rpython/annlowlevel.py
+++ b/pypy/rpython/annlowlevel.py
@@ -412,9 +412,9 @@
 
         def compute_result_annotation(self, s_ll_str):
             if strtype is str:
-                return annmodel.SomeString()
+                return annmodel.SomeString(can_be_None=True)
             else:
-                return annmodel.SomeUnicodeString()
+                return annmodel.SomeUnicodeString(can_be_None=True)
 
         def specialize_call(self, hop):
             hop.exception_cannot_occur()


More information about the Pypy-commit mailing list