[conduit/iphone: 7/20] Remove unused imports



commit 17ea5928a672aaadc0b1e97aa60dcb758b524dca
Author: John Stowers <john stowers gmail com>
Date:   Thu Sep 23 10:31:19 2010 +1200

    Remove unused imports

 conduit/modules/iPodModule/iPodModule.py    |   19 ++-----------------
 conduit/modules/iPodModule/ipod/__init__.py |   11 +++--------
 2 files changed, 5 insertions(+), 25 deletions(-)
---
diff --git a/conduit/modules/iPodModule/iPodModule.py b/conduit/modules/iPodModule/iPodModule.py
index 22ab4c5..7493b5b 100644
--- a/conduit/modules/iPodModule/iPodModule.py
+++ b/conduit/modules/iPodModule/iPodModule.py
@@ -1,28 +1,13 @@
-import sys
 import os
-import pickle
-import logging
-import time
-import socket
-import locale
-import weakref
-import threading
-import gobject
 import gio
+import logging
 log = logging.getLogger("modules.iPod")
 
-import conduit
 import conduit.dataproviders.DataProvider as DataProvider
 import conduit.dataproviders.DataProviderCategory as DataProviderCategory
 import conduit.dataproviders.MediaPlayerFactory as MediaPlayerFactory
 import conduit.dataproviders.HalFactory as HalFactory
 import conduit.utils as Utils
-import conduit.datatypes.Note as Note
-import conduit.datatypes.Contact as Contact
-import conduit.datatypes.Event as Event
-import conduit.datatypes.File as File
-import conduit.datatypes.Audio as Audio
-import conduit.datatypes.Video as Video
 
 from gettext import gettext as _
 
@@ -97,7 +82,7 @@ class iPhoneFactory(HalFactory.HalFactory):
     
     def get_dataproviders(self, key, **props):
         """ Return a list of dataproviders for this class of device """
-        return [IPodDummy, IPodPhotoSink, iPhoneCalendarsTwoWay]
+        return [IPodDummy, IPodPhotoSink, iPhoneCalendarsTwoWay, iPhoneContactsTwoWay]
 
     def get_args(self, key, **props):
         return (props[PROPS_KEY_UUID], props[PROPS_KEY_TYPE])
diff --git a/conduit/modules/iPodModule/ipod/__init__.py b/conduit/modules/iPodModule/ipod/__init__.py
index 5ba936f..e70e0ad 100644
--- a/conduit/modules/iPodModule/ipod/__init__.py
+++ b/conduit/modules/iPodModule/ipod/__init__.py
@@ -1,21 +1,16 @@
-import sys
 import os
 import pickle
-import logging
 import time
 import socket
 import locale
 import weakref
 import threading
-import gobject
-import gio
+import logging
 log = logging.getLogger("modules.iPod")
 
 import conduit
+import conduit.Exceptions as Exceptions
 import conduit.dataproviders.DataProvider as DataProvider
-import conduit.dataproviders.DataProviderCategory as DataProviderCategory
-import conduit.dataproviders.MediaPlayerFactory as MediaPlayerFactory
-import conduit.dataproviders.HalFactory as HalFactory
 import conduit.utils as Utils
 import conduit.datatypes.Note as Note
 import conduit.datatypes.Contact as Contact
@@ -529,7 +524,7 @@ class IPodFileBase:
         return str(hash(tuple(self.get_media_tags())))
 
     def get_snippet(self):
-        return "%(artist)s - %(title)s" % track
+        return "%(artist)s - %(title)s" % self.track
 
     def get_media_tags(self):
         '''



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]