~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/gpg.py

  • Committer: Robert Collins
  • Date: 2005-10-17 11:56:54 UTC
  • mfrom: (1185.16.59)
  • Revision ID: robertc@robertcollins.net-20051017115654-662239e1587524a8
mergeĀ fromĀ martin.

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
 
 
35
25
class LoopbackGPGStrategy(object):
36
 
    """A GPG Strategy that acts like 'cat' - data is just passed through."""
37
26
 
38
27
    def __init__(self, ignored):
39
28
        """Real strategies take a configuration."""