changeset 36339:3496bffe266d

py3: make sure we are doing integer division by using '//' Differential Revision: https://phab.mercurial-scm.org/D2337
author Pulkit Goyal <7895pulkit@gmail.com>
date Mon, 19 Feb 2018 00:31:01 +0530
parents a8bca9d0cea0
children 37a1501cbcfd
files mercurial/crecord.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/crecord.py	Mon Feb 19 00:15:50 2018 +0530
+++ b/mercurial/crecord.py	Mon Feb 19 00:31:01 2018 +0530
@@ -1335,7 +1335,7 @@
         # temporarily disable printing to windows by printstring
         patchdisplaystring = self.printitem(item, ignorefolding,
                                             recursechildren, towin=False)
-        numlines = len(patchdisplaystring) / self.xscreensize
+        numlines = len(patchdisplaystring) // self.xscreensize
         return numlines
 
     def sigwinchhandler(self, n, frame):