diff --git a/src/bitmessagekivy/mpybit.py b/src/bitmessagekivy/mpybit.py index a0a03f9d..64b47fa3 100644 --- a/src/bitmessagekivy/mpybit.py +++ b/src/bitmessagekivy/mpybit.py @@ -409,6 +409,7 @@ class MyAddress(Screen): @staticmethod def filter_address(address): """Method will filter the my address list data""" + # pylint: disable=deprecated-lambda if filter(lambda x: (state.searcing_text).lower() in x, [ BMConfigParser().get( address, 'label').lower(), address.lower()]): @@ -529,7 +530,7 @@ class AddressBook(Screen): class SelectableRecycleBoxLayout( FocusBehavior, LayoutSelectionBehavior, RecycleBoxLayout): """Adds selection and focus behaviour to the view""" - # pylint: disable = too-many-ancestors + # pylint: disable = too-many-ancestors, duplicate-bases pass @@ -2287,7 +2288,7 @@ class Draft(Screen): try: msg_count_objs = ( self.parent.parent.parent.parent.parent.parent.children[ - 2].children[0].ids) + 2].children[0].ids) except Exception: msg_count_objs = self.parent.parent.parent.parent.parent.children[ 2].children[0].ids diff --git a/src/class_singleCleaner.py b/src/class_singleCleaner.py index 2f435b99..e16ddcf4 100644 --- a/src/class_singleCleaner.py +++ b/src/class_singleCleaner.py @@ -21,12 +21,12 @@ It resends messages when there has been no response: # pylint: disable=relative-import, protected-access import gc import os +from datetime import datetime, timedelta import time import shared import knownnodes import queues -import shared import state import tr from bmconfigparser import BMConfigParser diff --git a/src/state.py b/src/state.py index 038e0e0a..8abd211d 100644 --- a/src/state.py +++ b/src/state.py @@ -124,4 +124,4 @@ availabe_credit = 0 in_sent_method = False -in_search_mode = False \ No newline at end of file +in_search_mode = False