[tor-commits] [bridgedb/develop] Make docstring for b.e.server.addServer clearer.

isis at torproject.org isis at torproject.org
Tue Jul 8 13:05:02 UTC 2014


commit e8ffb4252362ff0ef3a2962cb2834ef2bebaee8e
Author: Isis Lovecruft <isis at torproject.org>
Date:   Mon Jun 9 19:41:02 2014 +0000

    Make docstring for b.e.server.addServer clearer.
    
    Since there are technically two SMTP servers, be clearer that this
    function sets up the one which listens for incoming emails.
---
 lib/bridgedb/email/server.py |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/bridgedb/email/server.py b/lib/bridgedb/email/server.py
index aa3e08c..1717958 100644
--- a/lib/bridgedb/email/server.py
+++ b/lib/bridgedb/email/server.py
@@ -418,7 +418,8 @@ class SMTPIncomingServerFactory(smtp.SMTPFactory):
 
 
 def addServer(config, distributor, schedule):
-    """Set up a SMTP server for responding to requests for bridges.
+    """Set up a SMTP server which listens on the configured ``EMAIL_PORT`` for
+    incoming connections, and responds as necessary to requests for bridges.
 
     :type config: :class:`bridgedb.persistent.Conf`
     :param config: A configuration object.





More information about the tor-commits mailing list