[pypy-svn] r64538 - pypy/trunk/pypy/module/posix
fijal at codespeak.net
fijal at codespeak.net
Tue Apr 21 18:24:03 CEST 2009
Author: fijal
Date: Tue Apr 21 18:24:02 2009
New Revision: 64538
Modified:
pypy/trunk/pypy/module/posix/__init__.py
Log:
only if platform has chown...
Modified: pypy/trunk/pypy/module/posix/__init__.py
==============================================================================
--- pypy/trunk/pypy/module/posix/__init__.py (original)
+++ pypy/trunk/pypy/module/posix/__init__.py Tue Apr 21 18:24:02 2009
@@ -55,13 +55,14 @@
'strerror' : 'interp_posix.strerror',
'pipe' : 'interp_posix.pipe',
'chmod' : 'interp_posix.chmod',
- 'chown' : 'interp_posix.chown',
'rename' : 'interp_posix.rename',
'umask' : 'interp_posix.umask',
'_exit' : 'interp_posix._exit',
'utime' : 'interp_posix.utime',
'_statfields': 'interp_posix.getstatfields(space)',
}
+ if hasattr(os, 'chown'):
+ interpleveldefs['chown'] = 'interp_posix.chown'
if hasattr(os, 'ftruncate'):
interpleveldefs['ftruncate'] = 'interp_posix.ftruncate'
if hasattr(os, 'putenv'):
More information about the Pypy-commit
mailing list