/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-07-28 02:47:10 UTC
  • mfrom: (7519.1.1 merge-3.1)
  • Revision ID: breezy.the.bot@gmail.com-20200728024710-a2ylds219f1lsl62
Merge lp:brz/3.1.

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

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
"""GPG signing and checking logic."""
19
19
 
20
 
from __future__ import absolute_import
21
 
 
22
20
import os
23
21
 
24
22
from breezy.lazy_import import lazy_import
37
35
from . import (
38
36
    errors,
39
37
    )
40
 
from .sixish import (
41
 
    text_type,
42
 
    )
43
38
 
44
39
# verification results
45
40
SIGNATURE_VALID = 0
243
238
            raise GpgNotInstalled(
244
239
                'Set create_signatures=no to disable creating signatures.')
245
240
 
246
 
        if isinstance(content, text_type):
 
241
        if isinstance(content, str):
247
242
            raise errors.BzrBadParameterUnicode('content')
248
243
 
249
244
        plain_text = gpg.Data(content)