/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/remote.py

  • Committer: Martin
  • Date: 2017-05-25 01:35:55 UTC
  • mto: This revision was merged to the branch mainline in revision 6637.
  • Revision ID: gzlist@googlemail.com-20170525013555-lepzczdnzb9r272j
Apply 2to3 next fixer and make compatible

Show diffs side-by-side

added added

removed removed

Lines of Context:
1948
1948
        prev_inv = Inventory(root_id=None,
1949
1949
            revision_id=_mod_revision.NULL_REVISION)
1950
1950
        # there should be just one substream, with inventory deltas
1951
 
        substream_kind, substream = stream.next()
 
1951
        substream_kind, substream = next(stream)
1952
1952
        if substream_kind != "inventory-deltas":
1953
1953
            raise AssertionError(
1954
1954
                 "Unexpected stream %r received" % substream_kind)
2190
2190
            yield decompressor.decompress(start)
2191
2191
            while decompressor.unused_data == "":
2192
2192
                try:
2193
 
                    data = byte_stream.next()
 
2193
                    data = next(byte_stream)
2194
2194
                except StopIteration:
2195
2195
                    break
2196
2196
                yield decompressor.decompress(data)
2199
2199
        unused = ""
2200
2200
        while True:
2201
2201
            while not "\n" in unused:
2202
 
                unused += byte_stream.next()
 
2202
                unused += next(byte_stream)
2203
2203
            header, rest = unused.split("\n", 1)
2204
2204
            args = header.split("\0")
2205
2205
            if args[0] == "absent":