[pypy-svn] r35358 - pypy/dist/pypy/rlib

arigo at codespeak.net arigo at codespeak.net
Wed Dec 6 03:09:26 CET 2006


Author: arigo
Date: Wed Dec  6 03:09:11 2006
New Revision: 35358

Modified:
   pypy/dist/pypy/rlib/ros.py
Log:
Add forced args to ros, to be able to use it in the JIT.


Modified: pypy/dist/pypy/rlib/ros.py
==============================================================================
--- pypy/dist/pypy/rlib/ros.py	(original)
+++ pypy/dist/pypy/rlib/ros.py	Wed Dec  6 03:09:11 2006
@@ -8,6 +8,7 @@
     # we fake it with the real one
     name, value = name_eq_value.split('=', 1)
     os.putenv(name, value)
+putenv._annenforceargs_ = (str,)
 
 _initial_items = os.environ.items()
 
@@ -29,6 +30,7 @@
             return value
         idx += 1
     return None
+getenv._annenforceargs_ = (str,)
 
 
 class DIR(object):
@@ -49,3 +51,4 @@
 
 def opendir(dirname):
     return DIR(dirname)
+opendir._annenforceargs_ = (str,)



More information about the Pypy-commit mailing list