1 |
commit: b5f8f0e4f6912080bd59c2779a6892d2b3597c03 |
2 |
Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org> |
3 |
AuthorDate: Thu Jun 28 23:26:34 2012 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 29 12:50:24 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/webapp-config.git;a=commit;h=b5f8f0e4 |
7 |
|
8 |
Use range() instead of xrange() for compatibility with Python 3. |
9 |
|
10 |
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> |
11 |
|
12 |
--- |
13 |
WebappConfig/sandbox.py | 2 +- |
14 |
1 files changed, 1 insertions(+), 1 deletions(-) |
15 |
|
16 |
diff --git a/WebappConfig/sandbox.py b/WebappConfig/sandbox.py |
17 |
index bb92c50..0fddcce 100644 |
18 |
--- a/WebappConfig/sandbox.py |
19 |
+++ b/WebappConfig/sandbox.py |
20 |
@@ -32,7 +32,7 @@ if os.path.isdir("/proc/%i/fd" % os.getpid()): |
21 |
return map(int, [fd for fd in os.listdir("/proc/%i/fd" % os.getpid()) if fd.isdigit()]) |
22 |
else: |
23 |
def get_open_fds(): |
24 |
- return xrange(max_fd_limit) |
25 |
+ return range(max_fd_limit) |
26 |
|
27 |
|
28 |
class Sandbox: |