Patchwork D8108: tags: use modern // operator for division

login
register
mail settings
Submitter phabricator
Date Feb. 11, 2020, 2:09 a.m.
Message ID <differential-rev-PHID-DREV-ffj3tq6whcjjk545eip3-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/45146/
State Superseded
Headers show

Comments

phabricator - Feb. 11, 2020, 2:09 a.m.
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  Fixes a test on Python 3.
  
  1. skip-blame only correcting a division operator, not a substantive change

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  mercurial/tags.py

CHANGE DETAILS




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

Patch

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