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

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-02-14 03:16:54 UTC
  • mfrom: (7479.2.3 no-more-python2)
  • Revision ID: breezy.the.bot@gmail.com-20200214031654-bp1xtv2jr9nmhto3
Drop python2 support.

Merged from https://code.launchpad.net/~jelmer/brz/no-more-python2/+merge/378694

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
from . import (
38
38
    errors,
39
39
    )
40
 
from .sixish import (
41
 
    text_type,
42
 
    )
43
40
 
44
41
# verification results
45
42
SIGNATURE_VALID = 0
243
240
            raise GpgNotInstalled(
244
241
                'Set create_signatures=no to disable creating signatures.')
245
242
 
246
 
        if isinstance(content, text_type):
 
243
        if isinstance(content, str):
247
244
            raise errors.BzrBadParameterUnicode('content')
248
245
 
249
246
        plain_text = gpg.Data(content)