[Telepathy] [PATCH 2/2] fix NotImplemented usage in server/channel.py
Maksim Melnikau
maxposedon at gmail.com
Sun Dec 30 12:51:31 PST 2012
% pyflakes src/server/channel.py
src/server/channel.py:27: 'NotImplemented' imported but unused
Signed-off-by: Maksim Melnikau <maxposedon at gmail.com>
---
src/server/channel.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/server/channel.py b/src/server/channel.py
index 4fad41c..93e18e9 100644
--- a/src/server/channel.py
+++ b/src/server/channel.py
@@ -24,7 +24,7 @@ from telepathy.constants import (CONNECTION_HANDLE_TYPE_NONE,
CHANNEL_TEXT_MESSAGE_TYPE_NORMAL,
HANDLE_TYPE_NONE)
-from telepathy.errors import InvalidArgument
+from telepathy.errors import InvalidArgument, NotImplemented
from telepathy.interfaces import (CHANNEL_INTERFACE,
CHANNEL_INTERFACE_CONFERENCE,
@@ -157,7 +157,7 @@ class ChannelTypeContactList(Channel, _ChannelTypeContactListIface):
object_path=object_path)
def Close(self):
- raise telepathy.NotImplemented("Contact lists can't be closed")
+ raise NotImplemented("Contact lists can't be closed")
from telepathy._generated.Channel_Type_File_Transfer \
--
1.8.0.2
More information about the telepathy
mailing list