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

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-07-20 02:17:05 UTC
  • mfrom: (7518.1.2 merge-3.1)
  • Revision ID: breezy.the.bot@gmail.com-20200720021705-5f11tmo1hdqjxm6x
Merge lp:brz/3.1.

Merged from https://code.launchpad.net/~jelmer/brz/merge-3.1/+merge/387628

Show diffs side-by-side

added added

removed removed

Lines of Context:
184
184
        result = []
185
185
        for text_tag, text_value in self.items:
186
186
            tag = text_tag.encode('ascii')
187
 
            value = text_value.encode('utf-8')
 
187
            value = text_value.encode('utf-8', 'surrogateescape')
188
188
            if value == b'':
189
189
                result.append(tag + b': \n')
190
190
            elif b'\n' in value: