[pypy-svn] pypy ootype-virtualrefs: these two functions are sandboxsafe

antocuni commits-noreply at bitbucket.org
Fri Apr 8 14:35:13 CEST 2011


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: ootype-virtualrefs
Changeset: r43222:c425c49065bd
Date: 2011-04-08 14:30 +0200
http://bitbucket.org/pypy/pypy/changeset/c425c49065bd/

Log:	these two functions are sandboxsafe

diff --git a/pypy/rlib/rlocale.py b/pypy/rlib/rlocale.py
--- a/pypy/rlib/rlocale.py
+++ b/pypy/rlib/rlocale.py
@@ -178,7 +178,8 @@
     return '.', '', ''
 
 register_external(numeric_formatting, [], (str, str, str),
-                  ooimpl=oo_numeric_formatting)
+                  ooimpl=oo_numeric_formatting,
+                  sandboxsafe=True)
 
 
 _setlocale = external('setlocale', [rffi.INT, rffi.CCHARP], rffi.CCHARP)

diff --git a/pypy/rlib/rfloat.py b/pypy/rlib/rfloat.py
--- a/pypy/rlib/rfloat.py
+++ b/pypy/rlib/rfloat.py
@@ -46,7 +46,8 @@
 register_external(rstring_to_float, [SomeString(can_be_None=False)], float,
                   export_name='rstring_to_float',
                   llimpl=rstring_to_float_impl,
-                  ooimpl=oo_rstring_to_float)
+                  ooimpl=oo_rstring_to_float,
+                  sandboxsafe=True)
 
 
 # float as string  -> sign, beforept, afterpt, exponent


More information about the Pypy-commit mailing list