[pypy-svn] r46146 - in pypy/branch/pypy-more-rtti-inprogress: module/posix rpython/module

arigo at codespeak.net arigo at codespeak.net
Wed Aug 29 13:13:23 CEST 2007


Author: arigo
Date: Wed Aug 29 13:13:22 2007
New Revision: 46146

Modified:
   pypy/branch/pypy-more-rtti-inprogress/module/posix/__init__.py
   pypy/branch/pypy-more-rtti-inprogress/rpython/module/ll_os.py
Log:
No os.getuid()/geteuid() on Windows.


Modified: pypy/branch/pypy-more-rtti-inprogress/module/posix/__init__.py
==============================================================================
--- pypy/branch/pypy-more-rtti-inprogress/module/posix/__init__.py	(original)
+++ pypy/branch/pypy-more-rtti-inprogress/module/posix/__init__.py	Wed Aug 29 13:13:22 2007
@@ -48,8 +48,6 @@
     'rename'    : 'interp_posix.rename',
     'umask'     : 'interp_posix.umask',
     '_exit'     : 'interp_posix._exit',
-    #'getuid'    : 'interp_posix.getuid',
-    #'geteuid'   : 'interp_posix.geteuid',
     'utime'     : 'interp_posix.utime',
     '_statfields': 'interp_posix.getstatfields(space)',
     }

Modified: pypy/branch/pypy-more-rtti-inprogress/rpython/module/ll_os.py
==============================================================================
--- pypy/branch/pypy-more-rtti-inprogress/rpython/module/ll_os.py	(original)
+++ pypy/branch/pypy-more-rtti-inprogress/rpython/module/ll_os.py	Wed Aug 29 13:13:22 2007
@@ -271,12 +271,12 @@
             return extdef([], (str, str, str, str, str),
                           "ll_os.ll_uname", llimpl=uname_llimpl)
 
-    @registering(os.getuid)
+    @registering_if(os, 'getuid')
     def register_os_getuid(self):
         return self.extdef_for_os_function_returning_int('getuid',
                                                     includes=self.UNISTD_INCL)
 
-    @registering(os.geteuid)
+    @registering_if(os, 'geteuid')
     def register_os_geteuid(self):
         return self.extdef_for_os_function_returning_int('geteuid',
                                                     includes=self.UNISTD_INCL)



More information about the Pypy-commit mailing list