From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Skaor-00081H-EX for garchives@archives.gentoo.org; Fri, 29 Jun 2012 13:01:05 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7C21FE0552; Fri, 29 Jun 2012 13:00:48 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 4C8DCE0552 for ; Fri, 29 Jun 2012 13:00:48 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BA0391B4090 for ; Fri, 29 Jun 2012 13:00:47 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 4F134E543A for ; Fri, 29 Jun 2012 13:00:45 +0000 (UTC) From: "Anthony G. Basile" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anthony G. Basile" Message-ID: <1340974224.b5f8f0e4f6912080bd59c2779a6892d2b3597c03.blueness@gentoo> Subject: [gentoo-commits] proj/webapp-config:master commit in: WebappConfig/ X-VCS-Repository: proj/webapp-config X-VCS-Files: WebappConfig/sandbox.py X-VCS-Directories: WebappConfig/ X-VCS-Committer: blueness X-VCS-Committer-Name: Anthony G. Basile X-VCS-Revision: b5f8f0e4f6912080bd59c2779a6892d2b3597c03 X-VCS-Branch: master Date: Fri, 29 Jun 2012 13:00:45 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: e0b30498-ba4a-44c3-b3b1-2bf5a4300021 X-Archives-Hash: f327eef1a279e8f52090eca009f21692 commit: b5f8f0e4f6912080bd59c2779a6892d2b3597c03 Author: Arfrever Frehtes Taifersar Arahesis Apache Org> AuthorDate: Thu Jun 28 23:26:34 2012 +0000 Commit: Anthony G. Basile gentoo org> CommitDate: Fri Jun 29 12:50:24 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/webapp-config= .git;a=3Dcommit;h=3Db5f8f0e4 Use range() instead of xrange() for compatibility with Python 3. Signed-off-by: Anthony G. Basile gentoo.org> --- 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.getp= id()) if fd.isdigit()]) else: def get_open_fds(): - return xrange(max_fd_limit) + return range(max_fd_limit) =20 =20 class Sandbox: