fix #262: typo krange -> xrange

This commit is contained in:
Randall Leeds 2011-09-22 14:09:25 -04:00
parent 5dc53947ed
commit 0c4021d169

View File

@ -174,7 +174,7 @@ try:
except ImportError:
def closerange(fd_low, fd_high):
# Iterate through and close all file descriptors.
for fd in krange(fd_low, fd_high):
for fd in xrange(fd_low, fd_high):
try:
os.close(fd)
except OSError: # ERROR, fd wasn't open to begin with (ignored)