diff options
author | 2012-06-29 01:26:34 +0200 | |
---|---|---|
committer | 2012-06-29 08:50:24 -0400 | |
commit | b5f8f0e4f6912080bd59c2779a6892d2b3597c03 (patch) | |
tree | 3ca9a1b74793aabe75fc1ce5c0e7dab102a5927f | |
parent | Use str.join() instead of string.join() for compatibility with Python 3. (diff) | |
download | webapp-config-b5f8f0e4f6912080bd59c2779a6892d2b3597c03.tar.gz webapp-config-b5f8f0e4f6912080bd59c2779a6892d2b3597c03.tar.bz2 webapp-config-b5f8f0e4f6912080bd59c2779a6892d2b3597c03.zip |
Use range() instead of xrange() for compatibility with Python 3.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
-rw-r--r-- | WebappConfig/sandbox.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/WebappConfig/sandbox.py b/WebappConfig/sandbox.py index bb92c50..0fddcce 100644 --- a/WebappConfig/sandbox.py +++ b/WebappConfig/sandbox.py @@ -32,7 +32,7 @@ if os.path.isdir("/proc/%i/fd" % os.getpid()): return map(int, [fd for fd in os.listdir("/proc/%i/fd" % os.getpid()) if fd.isdigit()]) else: def get_open_fds(): - return xrange(max_fd_limit) + return range(max_fd_limit) class Sandbox: |