D2337: py3: make sure we are doing integer division by using '//'

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Sun Feb 18 15:46:29 EST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG74f40bdc06bd: py3: make sure we are doing integer division by using '//' (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2337?vs=5891&id=5894

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

AFFECTED FILES
  mercurial/crecord.py

CHANGE DETAILS

diff --git a/mercurial/crecord.py b/mercurial/crecord.py
--- a/mercurial/crecord.py
+++ b/mercurial/crecord.py
@@ -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):



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


More information about the Mercurial-devel mailing list