~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/gpg.py

  • Committer: Robert Collins
  • Date: 2005-12-24 02:20:45 UTC
  • mto: (1185.50.57 bzr-jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1550.
  • Revision ID: robertc@robertcollins.net-20051224022045-14efc8dfa0e1a4e9
Start tests for api usage.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
import bzrlib.errors as errors
24
24
 
 
25
class DisabledGPGStrategy(object):
 
26
    """A GPG Strategy that makes everything fail."""
 
27
 
 
28
    def __init__(self, ignored):
 
29
        """Real strategies take a configuration."""
 
30
 
 
31
    def sign(self, content):
 
32
        raise errors.SigningFailed('Signing is disabled.')
 
33
 
 
34
 
25
35
class LoopbackGPGStrategy(object):
 
36
    """A GPG Strategy that acts like 'cat' - data is just passed through."""
26
37
 
27
38
    def __init__(self, ignored):
28
39
        """Real strategies take a configuration."""