diff options
author | Bruno Wagner <bwgpro@gmail.com> | 2015-07-21 19:44:47 -0300 |
---|---|---|
committer | Bruno Wagner <bwgpro@gmail.com> | 2015-07-21 19:44:47 -0300 |
commit | ac6502194114a0e20c17c1801204b318731fece8 (patch) | |
tree | 47fd81ef4c3d8d0f0b4f82cafa7572f732a1af79 /mail/src/leap/mail/sync_hooks.py | |
parent | 16378bf2aeab4cb8da61299d34a8413902d614ae (diff) |
Pep8 warns about lambdas being assigned to a variable, changed walk and sync_hooks to lambdas to real functions
Diffstat (limited to 'mail/src/leap/mail/sync_hooks.py')
-rw-r--r-- | mail/src/leap/mail/sync_hooks.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mail/src/leap/mail/sync_hooks.py b/mail/src/leap/mail/sync_hooks.py index bd8d88d..8efbb7c 100644 --- a/mail/src/leap/mail/sync_hooks.py +++ b/mail/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): |