diff options
author | Peter Astrand <astrand@lysator.liu.se> | 2006-06-22 20:21:26 (GMT) |
---|---|---|
committer | Peter Astrand <astrand@lysator.liu.se> | 2006-06-22 20:21:26 (GMT) |
commit | ff355f1adaa423c143c169221bd4a80775adf8bb (patch) | |
tree | 2c9a7a74ff9201d25e60c720fcf59a830eb27006 /Lib/subprocess.py | |
parent | d6b2430b7a99110119743b8529b66c39d1fed722 (diff) | |
download | cpython-ff355f1adaa423c143c169221bd4a80775adf8bb.zip cpython-ff355f1adaa423c143c169221bd4a80775adf8bb.tar.gz cpython-ff355f1adaa423c143c169221bd4a80775adf8bb.tar.bz2 |
Applied patch #1506758: Prevent MemoryErrors with large MAXFD.
Diffstat (limited to 'Lib/subprocess.py')
-rw-r--r-- | Lib/subprocess.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py index a281cd8..9c9cd69 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py @@ -941,7 +941,7 @@ class Popen(object): def _close_fds(self, but): - for i in range(3, MAXFD): + for i in xrange(3, MAXFD): if i == but: continue try: |