fix pylint issues based on commit relevant to Search bar

This commit is contained in:
surbhi 2018-09-05 19:48:57 +05:30
parent 61aa874f09
commit ef21351486
No known key found for this signature in database
GPG Key ID: 88928762974D3618

View File

@ -407,11 +407,15 @@ class NewIdentity(Screen):
class SearchBar(TextInput, ActionItem): class SearchBar(TextInput, ActionItem):
"""Create SearchBar for PyBitmessage."""
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
"""Initailizes SearchBar with hint text."""
super(SearchBar, self).__init__(*args, **kwargs) super(SearchBar, self).__init__(*args, **kwargs)
self.hint_text = 'Search' self.hint_text = 'Search'
def search(self): def search(self):
"""Search for message request."""
request = self.text request = self.text
return str(request) return str(request)