[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [bridgedb/master] Add 'pragma:' directive to MailMessage.reply() errback function.



commit 8a71b50e9d7e81de011cb5c92d578e6b69e9fa0f
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date:   Wed May 21 04:25:29 2014 +0000

    Add 'pragma:' directive to MailMessage.reply() errback function.
    
    We can't really test it, since it's a nested function. However, we
    shouldn't need to, all it does is log the
    twisted.python.failure.Failure.
---
 lib/bridgedb/email/server.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bridgedb/email/server.py b/lib/bridgedb/email/server.py
index 2684d00..dd5b4fb 100644
--- a/lib/bridgedb/email/server.py
+++ b/lib/bridgedb/email/server.py
@@ -559,7 +559,7 @@ class MailMessage(object):
         """
         logging.info("Got an email; deciding whether to reply.")
 
-        def _replyEB(fail):
+        def _replyEB(fail):  # pragma: no cover
             """Errback for a :api:`twisted.mail.smtp.SMTPSenderFactory`.
 
             :param fail: A :api:`twisted.python.failure.Failure` which occurred during



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits