hugosenari / Kupfer-Plugins

My kupfer plugins install with Kupfer
https://github.com/kupferlauncher/kupfer/
11 stars 2 forks source link

Fix Empathy plugin for Python 3 #6

Closed khurshid-alam closed 7 years ago

khurshid-alam commented 7 years ago

It shows following error:

Traceback (most recent call last): File "/usr/lib/python3/dist-packages/dbus/connection.py", line 604, in msg_reply_handler reply_handler(*message.get_args_list(*get_args_opts)) File "/usr/share/kupfer/kupfer/plugin/empathy.py", line 224, in 'valid_account':valid_account}, args, **kwds), File "/usr/share/kupfer/kupfer/plugin/empathy.py", line 245, in _reply_handle_channels for contact, details in contact_details.iteritems(): AttributeError: 'dbus.Dictionary' object has no attribute 'iteritems'

Fix: Just Remove iteritems

- for contact, details in contact_details.iteritems():
+ for contact, details in contact_details.items():

def get_items(self):
-    for status, name in _STATUSES.iteritems()
+   for status, name in _STATUSES.items():
hugosenari commented 7 years ago

Thank you! Moving it to new structure