[tor-commits] [bridgedb/develop] PEP8 whitespace fixes for EmailServer.replyToMail().

isis at torproject.org isis at torproject.org
Mon Mar 17 05:18:10 UTC 2014


commit cae8198956404771b3467581a5db5758df89ce59
Author: Isis Lovecruft <isis at torproject.org>
Date:   Mon Mar 17 03:02:24 2014 +0000

    PEP8 whitespace fixes for EmailServer.replyToMail().
---
 lib/bridgedb/EmailServer.py |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/lib/bridgedb/EmailServer.py b/lib/bridgedb/EmailServer.py
index 8fb0d8a..79239c7 100644
--- a/lib/bridgedb/EmailServer.py
+++ b/lib/bridgedb/EmailServer.py
@@ -251,19 +251,18 @@ def replyToMail(lines, ctx):
     """
     logging.info("Got an email; deciding whether to reply.")
     sendToUser, response = getMailResponse(lines, ctx)
+
     if response is None:
         logging.debug("getMailResponse() said not to reply to %s, so I won't."
                       % Util.logSafely(sendToUser))
         return
+
     response.seek(0)
     logging.info("Sending reply to %r", Util.logSafely(sendToUser))
 
     d = Deferred()
-    factory = twisted.mail.smtp.SMTPSenderFactory(
-        ctx.smtpFromAddr,
-        sendToUser,
-        response,
-        d)
+    factory = twisted.mail.smtp.SMTPSenderFactory(ctx.smtpFromAddr, sendToUser,
+                                                  response, d)
     reactor.connectTCP(ctx.smtpServer, ctx.smtpPort, factory)
 
     return d





More information about the tor-commits mailing list