# HG changeset patch # User Gregory Szorc # Date 1494701888 25200 # Node ID c34532365b38530bae8640f1c7e4e9bf59c81ad5 # Parent 9b81fb2178209c87631a91678bc983b06a3fc9e3 branchmap: remove use of buffer() to support Python 2.6 The use of buffer() was added in 7359157b9e46 to support Python 2.6, which we no longer support. diff -r 9b81fb217820 -r c34532365b38 mercurial/branchmap.py --- a/mercurial/branchmap.py Sat May 13 11:55:39 2017 -0700 +++ b/mercurial/branchmap.py Sat May 13 11:58:08 2017 -0700 @@ -406,8 +406,7 @@ # fast path: extract data from cache, use it if node is matching reponode = changelog.node(rev)[:_rbcnodelen] - cachenode, branchidx = unpack_from( - _rbcrecfmt, util.buffer(self._rbcrevs), rbcrevidx) + cachenode, branchidx = unpack_from(_rbcrecfmt, self._rbcrevs, rbcrevidx) close = bool(branchidx & _rbccloseflag) if close: branchidx &= _rbcbranchidxmask