diff --git a/gunicorn/util.py b/gunicorn/util.py index dfa4d32e..62bec73d 100644 --- a/gunicorn/util.py +++ b/gunicorn/util.py @@ -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)