/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/bzr/_chk_map_py.py

  • Committer: Jelmer Vernooij
  • Date: 2020-02-07 02:14:30 UTC
  • mto: This revision was merged to the branch mainline in revision 7492.
  • Revision ID: jelmer@jelmer.uk-20200207021430-m49iq3x4x8xlib6x
Drop python2 support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
import zlib
22
22
import struct
23
23
 
24
 
from ..sixish import bytesintern
25
24
from ..static_tuple import StaticTuple
26
25
 
27
26
_LeafNode = None
167
166
    """Take a CHKInventory value string and return a (file_id, rev_id) tuple"""
168
167
    sections = data.split(b'\n')
169
168
    kind, file_id = sections[0].split(b': ')
170
 
    return (bytesintern(file_id), bytesintern(sections[3]))
 
169
    return (file_id, sections[3])