Mercurial > hg
changeset 36397:7a3590e67868
py3: use '//' for integer division in hgweb/common.py
'/' on Python 3 does the float division.
Differential Revision: https://phab.mercurial-scm.org/D2422
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sat, 24 Feb 2018 16:20:55 +0530 |
parents | 743b293c3ca0 |
children | eb73f8a6177e |
files | mercurial/hgweb/common.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hgweb/common.py Sat Feb 24 16:20:15 2018 +0530 +++ b/mercurial/hgweb/common.py Sat Feb 24 16:20:55 2018 +0530 @@ -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