[pypy-svn] r69546 - pypy/branch/stringbuilder/pypy/module/select

fijal at codespeak.net fijal at codespeak.net
Mon Nov 23 12:54:32 CET 2009


Author: fijal
Date: Mon Nov 23 12:54:30 2009
New Revision: 69546

Modified:
   pypy/branch/stringbuilder/pypy/module/select/interp_select.py
Log:
listview is not safe here


Modified: pypy/branch/stringbuilder/pypy/module/select/interp_select.py
==============================================================================
--- pypy/branch/stringbuilder/pypy/module/select/interp_select.py	(original)
+++ pypy/branch/stringbuilder/pypy/module/select/interp_select.py	Mon Nov 23 12:54:30 2009
@@ -113,9 +113,9 @@
 On Windows, only sockets are supported; on Unix, all file descriptors.
 """
 
-    iwtd_w = space.listview(w_iwtd)
-    owtd_w = space.listview(w_owtd)
-    ewtd_w = space.listview(w_ewtd)
+    iwtd_w = space.unpackiterable(w_iwtd)
+    owtd_w = space.unpackiterable(w_owtd)
+    ewtd_w = space.unpackiterable(w_ewtd)
     iwtd = [as_fd_w(space, w_f) for w_f in iwtd_w]
     owtd = [as_fd_w(space, w_f) for w_f in owtd_w]
     ewtd = [as_fd_w(space, w_f) for w_f in ewtd_w]



More information about the Pypy-commit mailing list