From patchwork Thu Jul 25 12:46:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: hgweb: replace next(revs) to revs.next() to fix compatibility with Python 2.5- From: Alexander Plavin X-Patchwork-Id: 1958 Message-Id: <669e01814c89a0deb1f9.1374756386@debian-alexander.dolgopa> To: mercurial-devel@selenic.com Date: Thu, 25 Jul 2013 16:46:26 +0400 # HG changeset patch # User Alexander Plavin # Date 1374751661 -14400 # Thu Jul 25 15:27:41 2013 +0400 # Branch stable # Node ID 669e01814c89a0deb1f9d8ad48c1483e363c9a68 # Parent 3ac1735a2265a1f0d0f5ea47a5e428e09c8b581d hgweb: replace next(revs) to revs.next() to fix compatibility with Python 2.5- diff -r 3ac1735a2265 -r 669e01814c89 mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py Thu Jul 25 02:44:27 2013 -0500 +++ b/mercurial/hgweb/webcommands.py Thu Jul 25 15:27:41 2013 +0400 @@ -204,7 +204,7 @@ if pos != -1: revs = web.repo.changelog.revs(pos, 0) if latestonly: - revs = (next(revs),) + revs = (revs.next(),) curcount = 0 for i in revs: ctx = web.repo[i]