Mercurial > hg-stable
changeset 23797:eb12c3cf210c
readmarkers: use unpacker for fixed header
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 11 Jan 2015 14:37:50 -0600 |
parents | 5fc29b459f6e |
children | 86d2a0c41f44 |
files | mercurial/obsolete.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/obsolete.py Sun Jan 11 14:35:03 2015 -0600 +++ b/mercurial/obsolete.py Sun Jan 11 14:37:50 2015 -0600 @@ -288,9 +288,10 @@ def _fm1readmarkers(data, off=0): # Loop on markers l = len(data) + ufixed = util.unpacker(_fm1fixed) while off + _fm1fsize <= l: # read fixed part - fixeddata = _unpack(_fm1fixed, data[off:off + _fm1fsize]) + fixeddata = ufixed(data[off:off + _fm1fsize]) off += _fm1fsize ttsize, seconds, tz, flags, numsuc, numpar, nummeta, prec = fixeddata