mercurial/hgweb/common.py
changeset 36397 7a3590e67868
parent 36296 d18c0cf5f3ab
child 36429 f8ea6988a5fb
--- 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