mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
fix #262: typo krange -> xrange
This commit is contained in:
parent
5dc53947ed
commit
0c4021d169
@ -174,7 +174,7 @@ try:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
def closerange(fd_low, fd_high):
|
def closerange(fd_low, fd_high):
|
||||||
# Iterate through and close all file descriptors.
|
# Iterate through and close all file descriptors.
|
||||||
for fd in krange(fd_low, fd_high):
|
for fd in xrange(fd_low, fd_high):
|
||||||
try:
|
try:
|
||||||
os.close(fd)
|
os.close(fd)
|
||||||
except OSError: # ERROR, fd wasn't open to begin with (ignored)
|
except OSError: # ERROR, fd wasn't open to begin with (ignored)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user