Commit d5343a85 authored by Marinus Schraal's avatar Marinus Schraal

Pyflake warning fixes

parent 25f91bb1
......@@ -33,7 +33,6 @@ from math import pi
import os
import cairo
from gettext import gettext as _
import gi
gi.require_version('MediaArt', '2.0')
from gi.repository import (Gdk, GdkPixbuf, Gio, GLib, GObject, Gtk, MediaArt,
......
......@@ -28,7 +28,6 @@ from gnomemusic.grilo import grilo
from gnomemusic.playlists import Playlists
import gnomemusic.utils as utils
from gettext import gettext as _
from gi.repository import GLib
from gi.repository import Gio
from gnomemusic import log
......
......@@ -22,7 +22,7 @@
# code, but you are not obligated to do so. If you do not wish to do so,
# delete this exception statement from your version.
from gi.repository import GLib, Grl, Notify
from gi.repository import GLib, Notify
from gettext import gettext as _
......
......@@ -32,7 +32,6 @@ from gnomemusic.grilo import grilo
from gnomemusic.query import Query
from gettext import gettext as _
import inspect
import time
sparql_dateTime_format = "%Y-%m-%dT%H:%M:%SZ"
from gnomemusic import log
......@@ -304,7 +303,7 @@ class Playlists(GObject.GObject):
def cursor_callback(cursor, res, data):
try:
has_next = cursor.next_finish(res)
cursor.next_finish(res)
except GLib.Error as err:
logger.warn("Error: %s, %s", err.__class__, err)
return
......
......@@ -25,7 +25,6 @@
# code, but you are not obligated to do so. If you do not wish to do so,
# delete this exception statement from your version.
from gettext import gettext as _
from gi.repository import GLib, Tracker
from gnomemusic import log
import os
......
......@@ -23,13 +23,11 @@
# delete this exception statement from your version.
from gettext import gettext as _, ngettext
from gi.repository import Gd, Gdk, GdkPixbuf, GLib, GObject, Gtk, Pango
from gi.repository import GdkPixbuf, GLib, GObject, Gtk
from gnomemusic import log
from gnomemusic.albumartcache import AlbumArtCache, DefaultIcon, ArtSize
from gnomemusic.grilo import grilo
from gnomemusic.player import DiscoveryStatus
from gnomemusic.playlists import Playlists
from gnomemusic.widgets.disclistboxwidget import DiscBox, DiscListBox
import gnomemusic.utils as utils
......
......@@ -22,13 +22,12 @@
# code, but you are not obligated to do so. If you do not wish to do so,
# delete this exception statement from your version.
from gettext import gettext as _
from gi.repository import Gdk, Gio, GLib, GObject, Gtk
from gi.repository import GLib, GObject, Gtk
from gnomemusic import log
from gnomemusic.albumartcache import AlbumArtCache, DefaultIcon, ArtSize
from gnomemusic.grilo import grilo
from gnomemusic.widgets.disclistboxwidget import DiscBox, DiscListBox
from gnomemusic.widgets.disclistboxwidget import DiscBox
import gnomemusic.utils as utils
......
......@@ -22,7 +22,7 @@
# code, but you are not obligated to do so. If you do not wish to do so,
# delete this exception statement from your version.
from gi.repository import Gdk, GObject, Gtk
from gi.repository import GObject, Gtk
from gnomemusic import log
from gnomemusic.grilo import grilo
......
......@@ -30,7 +30,7 @@
# delete this exception statement from your version.
from gi.repository import Gtk, Gdk, Gio, GLib
from gettext import gettext as _, ngettext
from gettext import gettext as _
from gnomemusic import log
from gnomemusic import TrackerWrapper
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment