From 36e3681d48cdece75b3c053ac0bd72f8f20401e5 Mon Sep 17 00:00:00 2001 From: Andrew Dunai Date: Sun, 18 Feb 2018 14:11:58 +0200 Subject: [PATCH] Cleanup. --- Dockerfile | 2 -- clay/eventhook.py | 1 - clay/gp.py | 6 +----- clay/pages/mylibrary.py | 1 - clay/pages/myplaylists.py | 2 -- clay/pages/settings.py | 4 ---- clay/songlist.py | 2 +- 7 files changed, 2 insertions(+), 16 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8f81443..2aca90a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,8 +15,6 @@ RUN apt-get install -y python3.6-dev python3-pip libvlc-dev vlc locales language RUN locale-gen en_US.UTF-8 RUN useradd ${HOST_USER} -m -G audio -u ${HOST_UID} -#RUN mkdir -p /home/${HOST_USER}/.config/clay -#RUN chown ${HOST_USER} /home/${HOST_USER}/.config/clay WORKDIR /home/${HOST_USER} diff --git a/clay/eventhook.py b/clay/eventhook.py index a528b94..b75cbb5 100644 --- a/clay/eventhook.py +++ b/clay/eventhook.py @@ -1,7 +1,6 @@ """ Events implemetation for signal handling. """ -# pylint: disable=too-few-public-methods class EventHook(object): diff --git a/clay/gp.py b/clay/gp.py index 7df902d..106c33c 100644 --- a/clay/gp.py +++ b/clay/gp.py @@ -2,11 +2,7 @@ Google Play Music integration via gmusicapi. """ # pylint: disable=broad-except -# pylint: disable=too-many-arguments -# pylint: disable=too-many-instance-attributes -# pylint: disable=too-many-return-statements # pylint: disable=protected-access -# pylint: disable=no-self-use from __future__ import print_function from threading import Thread, Lock from uuid import UUID @@ -86,7 +82,7 @@ class Track(object): SOURCE_PLAYLIST = 'playlist' SOURCE_SEARCH = 'search' - def __init__( + def __init__( # pylint: disable=too-many-arguments self, title, artist, duration, source, library_id=None, store_id=None, playlist_item_id=None, diff --git a/clay/pages/mylibrary.py b/clay/pages/mylibrary.py index 15d853b..3159c7c 100644 --- a/clay/pages/mylibrary.py +++ b/clay/pages/mylibrary.py @@ -43,7 +43,6 @@ class MyLibraryPage(urwid.Columns, AbstractPage): if error: notification_area.notify('Failed to load my library: {}'.format(str(error))) return - # self.notification.close() self.songlist.populate(tracks) self.app.redraw() diff --git a/clay/pages/myplaylists.py b/clay/pages/myplaylists.py index 22ba440..3c09b18 100644 --- a/clay/pages/myplaylists.py +++ b/clay/pages/myplaylists.py @@ -91,8 +91,6 @@ class MyPlaylistListBox(urwid.ListBox): ) items.append(myplaylistlistitem) - # self.notification.close() - self.walker[:] = items self.app.redraw() diff --git a/clay/pages/settings.py b/clay/pages/settings.py index e562bf4..352aef3 100644 --- a/clay/pages/settings.py +++ b/clay/pages/settings.py @@ -16,10 +16,6 @@ class Slider(urwid.Widget): _sizing = frozenset([urwid.FLOW]) CHARS = [ - # '_', - # u'\u2581', - # u'\u2500', - # u'\u2594' u'\u2584', u'\u25A0', u'\u2580', diff --git a/clay/songlist.py b/clay/songlist.py index f70287a..a659349 100644 --- a/clay/songlist.py +++ b/clay/songlist.py @@ -9,7 +9,7 @@ try: # Python 3.x from string import ascii_letters except ImportError: - # Python 2.3 + # Python 2.x from string import letters as ascii_letters import urwid from clay.notifications import notification_area