diff options
author | Kali Kaneko <kali@leap.se> | 2013-12-06 17:45:21 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2013-12-06 17:45:21 -0400 |
commit | 541bd8aec1f67834c42bc2e5df14c1f73c569082 (patch) | |
tree | 809e096502a98ca64e85ecebfa86fc8ef9c7ba80 /src/leap/mail/imap/tests/imapclient.py | |
parent | 55ec42e4ba92642dac93dc70ee64cd695478d57f (diff) |
pep8 cleanup
Diffstat (limited to 'src/leap/mail/imap/tests/imapclient.py')
-rwxr-xr-x | src/leap/mail/imap/tests/imapclient.py | 7 |
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): |