Remove trailing whitespaces.

This commit is contained in:
Emmanuel Gil Peyrot 2013-01-18 17:55:34 +01:00
commit 27b3592e16

View file

@ -50,7 +50,7 @@ PLUGIN_INFO = {
}
class SMTP_server():
params = """
<params>
<general>
@ -64,13 +64,13 @@ class SMTP_server():
def __init__(self, host):
info(_("Plugin SMTP Server initialization"))
self.host = host
#parameters
host.memory.importParams(self.params)
port = int(self.host.memory.getParamA("SMTP Port", "Mail Server"))
info(_("Launching SMTP server on port %d"), port)
self.server_factory = SmtpServerFactory(self.host)
reactor.listenTCP(port, self.server_factory)
@ -81,7 +81,7 @@ class SatSmtpMessage:
self.host=host
self.profile=profile
self.message=[]
def lineReceived(self, line):
"""handle another line"""
self.message.append(line)
@ -167,7 +167,7 @@ class SatProfileCredentialChecker:
credentialInterfaces = (credentials.IUsernamePassword,
credentials.IUsernameHashedPassword)
def __init__(self, host):
self.host = host
@ -203,7 +203,7 @@ class SmtpServerFactory(smtp.SMTPFactory):
def clientConnectionLost(self, connector, reason):
debug (_("SMTP server connection lost (reason: %s)"), reason)
smtp.SMTPFactory.clientConnectionLost(self, connector, reason)
def buildProtocol(self, addr):
p = smtp.SMTPFactory.buildProtocol(self, addr)
# add the challengers from imap4, more secure and complicated challengers are available