summaryrefslogtreecommitdiffstats
path: root/pym/portage/process.py
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-21 12:49:33 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-21 12:49:33 +0000
commitfa8ea8ef3cc8a7433d496e3dc54d56a0bd2ffd06 (patch)
tree90ba609a1b93428a62c936ae321d485f519b4f85 /pym/portage/process.py
parentc581522b4fcac9edae8e494e213c654612ad4490 (diff)
downloadportage-fa8ea8ef3cc8a7433d496e3dc54d56a0bd2ffd06.tar.gz
portage-fa8ea8ef3cc8a7433d496e3dc54d56a0bd2ffd06.tar.bz2
portage-fa8ea8ef3cc8a7433d496e3dc54d56a0bd2ffd06.zip
Use range() instead of xrange() for compatibility with Python 3.
(2to3-3.1 -f xrange -nw ${FILES}) svn path=/main/trunk/; revision=14317
Diffstat (limited to 'pym/portage/process.py')
-rw-r--r--pym/portage/process.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/process.py b/pym/portage/process.py
index d24b6f28a..b49f061f1 100644
--- a/pym/portage/process.py
+++ b/pym/portage/process.py
@@ -35,7 +35,7 @@ if os.path.isdir("/proc/%i/fd" % os.getpid()):
if fd.isdigit())
else:
def get_open_fds():
- return xrange(max_fd_limit)
+ return range(max_fd_limit)
sandbox_capable = (os.path.isfile(SANDBOX_BINARY) and
os.access(SANDBOX_BINARY, os.X_OK))