Typo EncryptedMessageFactory -> PGPMimeMessageFactory in send-pgp-mime.py
authorW. Trevor King <wking@drexel.edu>
Fri, 11 Sep 2009 15:52:02 +0000 (11:52 -0400)
committerW. Trevor King <wking@drexel.edu>
Tue, 20 Mar 2012 21:20:41 +0000 (17:20 -0400)
I changed the class name in commit
  wking@drexel.edu-20090718201613-n242qfl4s3j3kfjf
but missed two references.

interfaces/email/interactive/send_pgp_mime.py

index 55767b3d42270900c8407d8ed2bdba53ed05323d..939648c8a01904c6e42337779f4610483e8e4a1c 100644 (file)
@@ -282,7 +282,7 @@ class PGPMimeMessageFactory (object):
     True
     >>> target_emails(header) == [to_addr]
     True
-    >>> m = EncryptedMessageFactory('check 1 2\\ncheck 1 2\\n')
+    >>> m = PGPMimeMessageFactory('check 1 2\\ncheck 1 2\\n')
     >>> print flatten(m.clearBodyPart())
     Content-Type: text/plain; charset="us-ascii"
     MIME-Version: 1.0
@@ -591,7 +591,7 @@ if __name__ == '__main__':
     if body == None:
         raise Exception, "missing body"
 
-    m = EncryptedMessageFactory(body)
+    m = PGPMimeMessageFactory(body)
     if options.mode == "sign":
         bodymsg = m.sign(header)
     elif options.mode == "encrypt":