summaryrefslogtreecommitdiffstats
path: root/pym/portage/getbinpkg.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/getbinpkg.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/getbinpkg.py')
-rw-r--r--pym/portage/getbinpkg.py2
1 files changed, 1 insertions, 1 deletions
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("/"))),