[totem] plugins: Fix imports in Python plugins
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] plugins: Fix imports in Python plugins
- Date: Tue, 5 Apr 2011 00:14:56 +0000 (UTC)
commit d850392744374e4caf6fcd06cfa435967e7f5dbc
Author: Philip Withnall <philip tecnocode co uk>
Date: Sun Mar 27 11:36:25 2011 +0100
plugins: Fix imports in Python plugins
Helps: bgo#645739
src/plugins/coherence_upnp/coherence_upnp.py | 3 +++
src/plugins/dbus-service/dbus-service.py | 1 -
src/plugins/iplayer/iplayer.py | 1 -
src/plugins/iplayer/iplayer2.py | 1 -
src/plugins/jamendo/jamendo.py | 9 +++++++++
src/plugins/opensubtitles/hash.py | 1 -
6 files changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/src/plugins/coherence_upnp/coherence_upnp.py b/src/plugins/coherence_upnp/coherence_upnp.py
index 8863e19..62e49fc 100644
--- a/src/plugins/coherence_upnp/coherence_upnp.py
+++ b/src/plugins/coherence_upnp/coherence_upnp.py
@@ -5,6 +5,9 @@
# Copyright 2008, Frank Scholz <coherence beebits net>
+import gettext
+
+import gobject
from gi.repository import Peas
from gi.repository import Gtk
from gi.repository import Totem
diff --git a/src/plugins/dbus-service/dbus-service.py b/src/plugins/dbus-service/dbus-service.py
index 69a83c9..ed40208 100644
--- a/src/plugins/dbus-service/dbus-service.py
+++ b/src/plugins/dbus-service/dbus-service.py
@@ -22,7 +22,6 @@
import gobject
from gi.repository import Peas
-from gi.repository import Gtk
from gi.repository import Totem
import dbus, dbus.service
from dbus.mainloop.glib import DBusGMainLoop
diff --git a/src/plugins/iplayer/iplayer.py b/src/plugins/iplayer/iplayer.py
index 848664a..0835f8d 100644
--- a/src/plugins/iplayer/iplayer.py
+++ b/src/plugins/iplayer/iplayer.py
@@ -3,7 +3,6 @@
import gettext
import gobject
from gi.repository import Peas
-from gi.repository import Gtk
from gi.repository import Totem
import iplayer2
import threading
diff --git a/src/plugins/iplayer/iplayer2.py b/src/plugins/iplayer/iplayer2.py
index 665b070..de1a1d3 100644
--- a/src/plugins/iplayer/iplayer2.py
+++ b/src/plugins/iplayer/iplayer2.py
@@ -12,7 +12,6 @@ import gettext
# external libs
import httplib2
-import feedparser
import listparser
from BeautifulSoup import BeautifulStoneSoup
diff --git a/src/plugins/jamendo/jamendo.py b/src/plugins/jamendo/jamendo.py
index e27850b..bf9e1df 100644
--- a/src/plugins/jamendo/jamendo.py
+++ b/src/plugins/jamendo/jamendo.py
@@ -31,6 +31,8 @@ TODO:
"""
import os
+import gettext
+
import gobject
from gi.repository import Gio
from gi.repository import Peas
@@ -39,12 +41,19 @@ from gi.repository import Gtk
from gi.repository import GdkPixbuf
from gi.repository import Totem
from gi.repository import Pango
+
import socket
import threading
import time
import urllib
import urllib2
from xml.sax.saxutils import escape
+
+gettext.textdomain ("totem")
+
+D_ = gettext.dgettext
+_ = gettext.gettext
+
try:
import json
except ImportError:
diff --git a/src/plugins/opensubtitles/hash.py b/src/plugins/opensubtitles/hash.py
index b8135b4..aed867e 100644
--- a/src/plugins/opensubtitles/hash.py
+++ b/src/plugins/opensubtitles/hash.py
@@ -1,5 +1,4 @@
import struct
-import os
import gio
SIZE_ERROR = -1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]