From 3d80fe94c7c04d8982d4e63173a3abb6c0c9c410 Mon Sep 17 00:00:00 2001 From: lakshyacis Date: Mon, 16 Sep 2019 18:16:07 +0530 Subject: [PATCH 1/2] mpybit flake8 fixes --- src/bitmessagekivy/mpybit.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bitmessagekivy/mpybit.py b/src/bitmessagekivy/mpybit.py index 8e9d4e30..b3b78e95 100644 --- a/src/bitmessagekivy/mpybit.py +++ b/src/bitmessagekivy/mpybit.py @@ -619,7 +619,8 @@ class Payment(Screen): toast('We already have added free coins for the subscription to your account!') else: toast('Coins added to your account!') - state.kivyapp.root.ids.sc18.ids.ml.children[0].children[0].children[0].children[0].text = '{0}'.format(state.availabe_credit) + state.kivyapp.root.ids.sc18.ids.ml.children[0].children[0].children[ + 0].children[0].text = '{0}'.format(state.availabe_credit) class Credits(Screen): From a25ce191bf026d9d3e74b5e08d01e924611f8f29 Mon Sep 17 00:00:00 2001 From: lakshyacis Date: Mon, 16 Sep 2019 18:19:07 +0530 Subject: [PATCH 2/2] mpybit pylint fixes --- src/bitmessagekivy/mpybit.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bitmessagekivy/mpybit.py b/src/bitmessagekivy/mpybit.py index b3b78e95..be4be868 100644 --- a/src/bitmessagekivy/mpybit.py +++ b/src/bitmessagekivy/mpybit.py @@ -612,7 +612,8 @@ class MyTextInput(TextInput): class Payment(Screen): """Payment Method.""" - def get_available_credits(self, instance): + def get_available_credits(self, instance): # pylint: disable=no-self-use + """Method helps to get the available credits""" state.availabe_credit = instance.parent.children[1].text existing_credits = state.kivyapp.root.ids.sc18.ids.ml.children[0].children[0].children[0].children[0].text if len(existing_credits.split(' ')) > 1: @@ -1470,7 +1471,7 @@ class NavigationDrawerTwoLineListItem( def _update_specific_text_color(self, instance, value): pass - def _set_active(self, active, list): + def _set_active(self, active, list): # pylint: disable=redefined-builtin pass