/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/tests/http_server.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-08-01 23:17:05 UTC
  • mfrom: (7045.5.11 python3-w)
  • Revision ID: breezy.the.bot@gmail.com-20180801231705-ajjz4uihoohy1ufm
Fix another ~400 tests on Python 3.

Merged from https://code.launchpad.net/~jelmer/brz/python3-w/+merge/352048

Show diffs side-by-side

added added

removed removed

Lines of Context:
233
233
        boundary = '%d' % random.randint(0, 0x7FFFFFFF)
234
234
        self.send_header('Content-Type',
235
235
                         'multipart/byteranges; boundary=%s' % boundary)
236
 
        boundary_line = '--%s\r\n' % boundary
 
236
        boundary_line = b'--%s\r\n' % boundary.encode('ascii')
237
237
        # Calculate the Content-Length
238
238
        content_length = 0
239
239
        for (start, end) in ranges: