From 0c4021d169b3c63b84613e013b6953d66869362c Mon Sep 17 00:00:00 2001 From: Randall Leeds Date: Thu, 22 Sep 2011 14:09:25 -0400 Subject: [PATCH] fix #262: typo krange -> xrange --- gunicorn/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)