# HG changeset patch # User Augie Fackler # Date 1500909456 14400 # Node ID da7c285ec6da1cd2be0485ddb4b83b3c21c79b02 # Parent 38fc45721334b566d2a3f56b3274c7fbc18ae1f5 bundle2: use modern Python division This was failing on Python 3 because the / was returning a float, which was then making the __mul__ on a bytes sad. diff -r 38fc45721334 -r da7c285ec6da mercurial/bundle2.py --- a/mercurial/bundle2.py Mon Jul 24 11:16:53 2017 -0400 +++ b/mercurial/bundle2.py Mon Jul 24 11:17:36 2017 -0400 @@ -145,7 +145,7 @@ preserve. """ -from __future__ import absolute_import +from __future__ import absolute_import, division import errno import re @@ -1017,7 +1017,7 @@ for key, value in advpar: parsizes.append(len(key)) parsizes.append(len(value)) - paramsizes = _pack(_makefpartparamsizes(len(parsizes) / 2), *parsizes) + paramsizes = _pack(_makefpartparamsizes(len(parsizes) // 2), *parsizes) header.append(paramsizes) # key, value for key, value in manpar: