Commit 8ec186c1ccf by Augie Fackler

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
parent e80da7a6326
......@@ -721,7 +721,7 @@ class hgtagsfnodescache(object):
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment