[pypy-svn] r45830 - pypy/branch/pypy-more-rtti-inprogress/translator/sandbox

arigo at codespeak.net arigo at codespeak.net
Fri Aug 17 20:18:35 CEST 2007


Author: arigo
Date: Fri Aug 17 20:18:35 2007
New Revision: 45830

Modified:
   pypy/branch/pypy-more-rtti-inprogress/translator/sandbox/sandlib.py
Log:
os.listdir()


Modified: pypy/branch/pypy-more-rtti-inprogress/translator/sandbox/sandlib.py
==============================================================================
--- pypy/branch/pypy-more-rtti-inprogress/translator/sandbox/sandlib.py	(original)
+++ pypy/branch/pypy-more-rtti-inprogress/translator/sandbox/sandlib.py	Fri Aug 17 20:18:35 2007
@@ -316,3 +316,7 @@
     def do_ll_os__ll_os_strerror(self, errnum):
         # unsure if this shouldn't be considered safeboxsafe
         return os.strerror(errnum) or ('Unknown error %d' % (errnum,))
+
+    def do_ll_os__ll_os_listdir(self, vpathname):
+        pathname = self.translate_path(vpathname)
+        return os.listdir(pathname)



More information about the Pypy-commit mailing list