diff options
author | mathieui <mathieui@mathieui.net> | 2018-08-15 13:24:11 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2018-08-15 13:24:11 +0200 |
commit | b6e23355f1be8f02ab1e5284e65991382be76dbc (patch) | |
tree | 9cfb9d49eec87ac0ffca7b5d0e15df5a404cf37c /plugins/mpd_client.py | |
parent | 6e13b8b73572f9c0ac9b5c683b98a475afbeab38 (diff) | |
download | poezio-b6e23355f1be8f02ab1e5284e65991382be76dbc.tar.gz poezio-b6e23355f1be8f02ab1e5284e65991382be76dbc.tar.bz2 poezio-b6e23355f1be8f02ab1e5284e65991382be76dbc.tar.xz poezio-b6e23355f1be8f02ab1e5284e65991382be76dbc.zip |
Make pylint happy on plugins
It does not like dynamically defined attributes, unsurprisingly
Diffstat (limited to 'plugins/mpd_client.py')
-rw-r--r-- | plugins/mpd_client.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/mpd_client.py b/plugins/mpd_client.py index c5cd88b8..a8893999 100644 --- a/plugins/mpd_client.py +++ b/plugins/mpd_client.py @@ -76,8 +76,8 @@ class Plugin(BasePlugin): port=self.config.get('port', '6600')) password = self.config.get('password', '') if password: - c.password(password) - current = c.currentsong() + c.password(password) #pylint: disable=no-member + current = c.currentsong() #pylint: disable=no-member artist = current.get('artist', 'Unknown artist') album = current.get('album', 'Unknown album') title = current.get('title', base( @@ -86,7 +86,7 @@ class Plugin(BasePlugin): s = '%s - %s (%s)' % (artist, title, album) if 'full' in args: if 'elapsed' in current and 'time' in current: - current_time = float(c.status()['elapsed']) + current_time = float(c.status()['elapsed']) #pylint: disable=no-member percents = int(current_time / float(current['time']) * 10) s += ' \x192}[\x191}' + '-' * ( percents - 1) + '\x193}+' + '\x191}' + '-' * ( |