diff Lib/subprocess.py @ 38918:d84224320f82 2.4

Applied patch #1506758: Prevent MemoryErrors with large MAXFD. Backport of 47077.
author Peter Astrand <astrand@lysator.liu.se>
date Thu, 22 Jun 2006 20:28:33 +0000
parents 913e5e84fade
children 4796588d9f9a
line wrap: on
line diff
--- a/Lib/subprocess.py	Wed Jun 21 22:11:16 2006 +0000
+++ b/Lib/subprocess.py	Thu Jun 22 20:28:33 2006 +0000
@@ -867,7 +867,7 @@
 
 
         def _close_fds(self, but):
-            for i in range(3, MAXFD):
+            for i in xrange(3, MAXFD):
                 if i == but:
                     continue
                 try: