~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/gpg.py

  • Committer: Aaron Bentley
  • Date: 2007-06-12 18:10:06 UTC
  • mfrom: (2525 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2527.
  • Revision ID: abentley@panoramicfeedback.com-20070612181006-kinkxenc2dmgb4lp
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
        """Real strategies take a configuration."""
51
51
 
52
52
    def sign(self, content):
53
 
        return content
 
53
        return ("-----BEGIN PSEUDO-SIGNED CONTENT-----\n" + content +
 
54
                "-----END PSEUDO-SIGNED CONTENT-----\n")
54
55
 
55
56
 
56
57
def _set_gpg_tty():
76
77
        self._config = config
77
78
 
78
79
    def sign(self, content):
 
80
        if isinstance(content, unicode):
 
81
            raise errors.BzrBadParameterUnicode('content')
79
82
        ui.ui_factory.clear_term()
80
83
 
81
84
        preexec_fn = _set_gpg_tty