# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2018-02-24 10:50:55 # Node ID 7a3590e67868351e7f8c5f155b36adc5705003b0 # Parent 743b293c3ca01bfabf31abf4a75c4697ab67d837 py3: use '//' for integer division in hgweb/common.py '/' on Python 3 does the float division. Differential Revision: https://phab.mercurial-scm.org/D2422 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 @@ def paritygen(stripecount, offset=0): 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