/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: Jelmer Vernooij
  • Date: 2020-08-10 15:00:17 UTC
  • mfrom: (7490.40.99 work)
  • mto: This revision was merged to the branch mainline in revision 7521.
  • Revision ID: jelmer@jelmer.uk-20200810150017-vs7xnrd1vat4iktg
Merge lp:brz/3.1.

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)