changeset 44351:8ec186c1ccfe

tags: use modern // operator for division Fixes a test on Python 3. # skip-blame only correcting a division operator, not a substantive change Differential Revision: https://phab.mercurial-scm.org/D8108
author Augie Fackler <augie@google.com>
date Mon, 10 Feb 2020 21:02:22 -0500
parents e80da7a63264
children 0bf3b5e80d30
files mercurial/tags.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/tags.py	Mon Feb 10 20:47:19 2020 -0500
+++ b/mercurial/tags.py	Mon Feb 10 21:02:22 2020 -0500
@@ -721,7 +721,7 @@
         self._dirtyoffset = None
 
         rawlentokeep = min(
-            wantedlen, (rawlen / _fnodesrecsize) * _fnodesrecsize
+            wantedlen, (rawlen // _fnodesrecsize) * _fnodesrecsize
         )
         if rawlen > rawlentokeep:
             # There's no easy way to truncate array instances. This seems