From fa8ea8ef3cc8a7433d496e3dc54d56a0bd2ffd06 Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Mon, 21 Sep 2009 12:49:33 +0000 Subject: Use range() instead of xrange() for compatibility with Python 3. (2to3-3.1 -f xrange -nw ${FILES}) svn path=/main/trunk/; revision=14317 --- pym/portage/getbinpkg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pym/portage/getbinpkg.py') diff --git a/pym/portage/getbinpkg.py b/pym/portage/getbinpkg.py index 2003fdbdc..5d3864fd1 100644 --- a/pym/portage/getbinpkg.py +++ b/pym/portage/getbinpkg.py @@ -648,7 +648,7 @@ def dir_get_metadata(baseurl, conn=None, chunk_size=3000, verbose=1, usingcache= cache_stats.update() metadata[baseurl]["modified"] = 1 myid = None - for retry in xrange(3): + for retry in range(3): try: myid = file_get_metadata( "/".join((baseurl.rstrip("/"), x.lstrip("/"))), -- cgit v1.2.3-1-g7c22