summaryrefslogtreecommitdiff
path: root/src/leap/mail/imap/tests/imapclient.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2013-12-23 02:12:00 -0400
committerKali Kaneko <kali@leap.se>2013-12-23 02:13:39 -0400
commit7b83416ab19f28b133c59deeffcd65e0cfc040e5 (patch)
treebc6888175028b44ac759e0cfc811bec5b9cc2881 /src/leap/mail/imap/tests/imapclient.py
parentbd93b18b3e55ca5b3b4c4a00edb427ae60dc7f16 (diff)
parent20c4a5c369ca7e5e169c17791eeb74756b23fd56 (diff)
Merge branch 'develop' into debian
Prepare for 0.3.9-rc
Diffstat (limited to 'src/leap/mail/imap/tests/imapclient.py')
-rwxr-xr-xsrc/leap/mail/imap/tests/imapclient.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/leap/mail/imap/tests/imapclient.py b/src/leap/mail/imap/tests/imapclient.py
index 027396c..c353cee 100755
--- a/src/leap/mail/imap/tests/imapclient.py
+++ b/src/leap/mail/imap/tests/imapclient.py
@@ -21,7 +21,7 @@ from twisted.python import log
class TrivialPrompter(basic.LineReceiver):
- #from os import linesep as delimiter
+ # from os import linesep as delimiter
promptDeferred = None
@@ -42,6 +42,7 @@ class TrivialPrompter(basic.LineReceiver):
class SimpleIMAP4Client(imap4.IMAP4Client):
+
"""
Add callbacks when the client receives greeting messages from
an IMAP server.
@@ -98,8 +99,8 @@ def cbServerGreeting(proto, username, password):
# Try to authenticate securely
return proto.authenticate(
password).addCallback(
- cbAuthentication, proto).addErrback(
- ebAuthentication, proto, username, password)
+ cbAuthentication, proto).addErrback(
+ ebAuthentication, proto, username, password)
def ebConnection(reason):