Patchwork D2422: py3: use '//' for integer division in hgweb/common.py

login
register
mail settings
Submitter phabricator
Date Feb. 24, 2018, 12:57 p.m.
Message ID <1b7c10943de8230a27f740737b061573@localhost.localdomain>
Download mbox | patch
Permalink /patch/28325/
State Not Applicable
Headers show

Comments

phabricator - Feb. 24, 2018, 12:57 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG7a3590e67868: py3: use &#039;//&#039; for integer division in hgweb/common.py (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2422?vs=6046&id=6052

REVISION DETAIL
  https://phab.mercurial-scm.org/D2422

AFFECTED FILES
  mercurial/hgweb/common.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/hgweb/common.py b/mercurial/hgweb/common.py
--- a/mercurial/hgweb/common.py
+++ b/mercurial/hgweb/common.py
@@ -185,7 +185,7 @@ 
     if stripecount and offset:
         # account for offset, e.g. due to building the list in reverse
         count = (stripecount + offset) % stripecount
-        parity = (stripecount + offset) / stripecount & 1
+        parity = (stripecount + offset) // stripecount & 1
     else:
         count = 0
         parity = 0