[telepathy-python/master] remove unused imports

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Fri Jun 12 04:38:50 PDT 2009


---
 examples/tube-dbus-muc.py |   12 ++++--------
 examples/tubeconn.py      |    2 +-
 2 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/examples/tube-dbus-muc.py b/examples/tube-dbus-muc.py
index 859ae26..2c160cc 100644
--- a/examples/tube-dbus-muc.py
+++ b/examples/tube-dbus-muc.py
@@ -3,23 +3,19 @@ import dbus.glib
 import gobject
 import sys
 import time
-import random
-import pprint
 from dbus.service import method, signal, Object
-from dbus import Interface, PROPERTIES_IFACE
+from dbus import  PROPERTIES_IFACE
 
-from telepathy.client import (
-        Connection, Channel)
+from telepathy.client import Channel
 from telepathy.interfaces import (
-        CONN_INTERFACE, CHANNEL_INTERFACE_GROUP, CHANNEL_TYPE_TUBES,
+        CONN_INTERFACE, CHANNEL_INTERFACE_GROUP,
         CHANNEL_TYPE_TEXT, CHANNEL_INTERFACE, CONNECTION_INTERFACE_REQUESTS,
         CHANNEL_INTERFACE_TUBE, CHANNEL_TYPE_DBUS_TUBE)
 from telepathy.constants import (
         CONNECTION_HANDLE_TYPE_CONTACT,
         CONNECTION_HANDLE_TYPE_ROOM, CONNECTION_STATUS_CONNECTED,
         CONNECTION_STATUS_DISCONNECTED, CONNECTION_STATUS_CONNECTING,
-        TUBE_TYPE_DBUS, TUBE_TYPE_STREAM, TUBE_STATE_LOCAL_PENDING,
-        TUBE_STATE_REMOTE_PENDING, TUBE_STATE_OPEN, SOCKET_ACCESS_CONTROL_CREDENTIALS,
+        SOCKET_ACCESS_CONTROL_CREDENTIALS,
         TUBE_CHANNEL_STATE_LOCAL_PENDING, TUBE_CHANNEL_STATE_REMOTE_PENDING,
         TUBE_CHANNEL_STATE_OPEN, TUBE_CHANNEL_STATE_NOT_OFFERED)
 
diff --git a/examples/tubeconn.py b/examples/tubeconn.py
index ce950fd..aae6c72 100644
--- a/examples/tubeconn.py
+++ b/examples/tubeconn.py
@@ -26,7 +26,7 @@ import logging
 from dbus.connection import Connection
 from dbus import PROPERTIES_IFACE
 
-from telepathy.interfaces import CHANNEL_INTERFACE, CHANNEL_TYPE_DBUS_TUBE
+from telepathy.interfaces import CHANNEL_TYPE_DBUS_TUBE
 
 logger = logging.getLogger('telepathy.tubeconn')
 
-- 
1.5.6.5



More information about the telepathy-commits mailing list