tags: use modern // operator for division
authorAugie Fackler <augie@google.com>
Mon, 10 Feb 2020 21:02:22 -0500
changeset 44351 8ec186c1ccfe
parent 44350 e80da7a63264
child 44352 0bf3b5e80d30
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
mercurial/tags.py
--- 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