[Telepathy] [PATCH 1/2] fix handle_type in server/conn.py create_handle
Maksim Melnikau
maxposedon at gmail.com
Sun Dec 30 12:51:30 PST 2012
File "/usr/lib64/python2.7/site-packages/telepathy/server/conn.py",
line 172, in create_handle
handle = Handle(id, handle_type, name)
NameError: global name 'handle_type' is not defined
% pyflakes src/server/conn.py
src/server/conn.py:172: undefined name 'handle_type'
src/server/conn.py:173: undefined name 'handle_type'
Signed-off-by: Maksim Melnikau <maxposedon at gmail.com>
---
src/server/conn.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/server/conn.py b/src/server/conn.py
index 979d473..ad41925 100644
--- a/src/server/conn.py
+++ b/src/server/conn.py
@@ -169,8 +169,8 @@ class Connection(_Connection, DBusProperties):
def create_handle(self, type, name, **kwargs):
id = self.get_handle_id()
- handle = Handle(id, handle_type, name)
- self._handles[handle_type, id] = handle
+ handle = Handle(id, type, name)
+ self._handles[type, id] = handle
return handle
def normalize_handle_name(self, type, name):
--
1.8.0.2
More information about the telepathy
mailing list