diff Lib/subprocess.py @ 38917:bceaa7720cc7 legacy-trunk

Applied patch #1506758: Prevent MemoryErrors with large MAXFD.
author Peter Astrand <astrand@lysator.liu.se>
date Thu, 22 Jun 2006 20:21:26 +0000
parents 7d31d031f8e1
children 8cc9784130a0
line wrap: on
line diff
--- a/Lib/subprocess.py	Thu Jun 22 20:06:46 2006 +0000
+++ b/Lib/subprocess.py	Thu Jun 22 20:21:26 2006 +0000
@@ -941,7 +941,7 @@
 
 
         def _close_fds(self, but):
-            for i in range(3, MAXFD):
+            for i in xrange(3, MAXFD):
                 if i == but:
                     continue
                 try: