summaryrefslogtreecommitdiff
path: root/src/leap/mail/sync_hooks.py
diff options
context:
space:
mode:
authorBruno Wagner <bwgpro@gmail.com>2015-07-21 19:44:47 -0300
committerBruno Wagner <bwgpro@gmail.com>2015-07-21 19:44:47 -0300
commit63e643466882996f32eba1c0f79ebdd3ceb5f3b3 (patch)
tree37b37d87a0e496b398f3754ba9a53f7ac493d53a /src/leap/mail/sync_hooks.py
parentbb132dcc1b558cfdfd0bf438779fe2ed07827fd5 (diff)
Pep8 warns about lambdas being assigned to a variable, changed walk and sync_hooks to lambdas to real functions
Diffstat (limited to 'src/leap/mail/sync_hooks.py')
-rw-r--r--src/leap/mail/sync_hooks.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/leap/mail/sync_hooks.py b/src/leap/mail/sync_hooks.py
index bd8d88d..8efbb7c 100644
--- a/src/leap/mail/sync_hooks.py
+++ b/src/leap/mail/sync_hooks.py
@@ -32,10 +32,11 @@ from twisted.python import log
from leap.soledad.client.interfaces import ISoledadPostSyncPlugin
from leap.mail import constants
-
logger = logging.getLogger(__name__)
-_get_doc_type_preffix = lambda s: s[:2]
+
+def _get_doc_type_preffix(s):
+ return s[:2]
class MailProcessingPostSyncHook(object):