# HG changeset patch # User Augie Fackler # Date 1581386542 18000 # Node ID 8ec186c1ccfe98c05c6b85b0a8464b9f1b7efa24 # Parent e80da7a63264389e4cf96f57974a357789c0fbec 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 diff -r e80da7a63264 -r 8ec186c1ccfe 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