diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py index 59ec2012c..cbca7b147 100644 --- a/src/common/connection_handlers.py +++ b/src/common/connection_handlers.py @@ -42,7 +42,7 @@ from calendar import timegm import nbxmpp from common import caps_cache as capscache -from pep import LOCATION_DATA +from common.pep import LOCATION_DATA from common import helpers from common import gajim from common import exceptions diff --git a/src/common/i18n.py b/src/common/i18n.py index 4b869e728..f3fd98dd1 100644 --- a/src/common/i18n.py +++ b/src/common/i18n.py @@ -28,7 +28,7 @@ from common import defs import unicodedata # May be changed after GTK is imported -direction_mark = u'\u200F' +direction_mark = '\u200F' def paragraph_direction_mark(text): """ diff --git a/src/common/proxy65_manager.py b/src/common/proxy65_manager.py index ff1e5fda8..a6f98b076 100644 --- a/src/common/proxy65_manager.py +++ b/src/common/proxy65_manager.py @@ -166,7 +166,7 @@ class ProxyResolver: self.state = S_FINISHED def _on_connect_failure(self): - print 'connection failed: ' + self.host + print('connection failed: ' + self.host) self.state = S_FINISHED self.host = None self.port = 0 diff --git a/src/gajim.py b/src/gajim.py index 42f566e5b..eb988a759 100644 --- a/src/gajim.py +++ b/src/gajim.py @@ -210,7 +210,7 @@ if os.name == 'nt': warnings.filterwarnings(action='ignore') if Gtk.Widget.get_default_direction() == Gtk.TextDirection.LTR: - i18n.direction_mark = u'\u200E' + i18n.direction_mark = '\u200E' pritext = '' from common import exceptions diff --git a/src/groupchat_control.py b/src/groupchat_control.py index 412ac8505..1abe5a4e6 100644 --- a/src/groupchat_control.py +++ b/src/groupchat_control.py @@ -2808,8 +2808,8 @@ class GroupchatControl(ChatControlBase): if fjid in connection.blocked_contacts: return max_order = connection.get_max_blocked_list_order() - new_rule = {'order': str(max_order + 1), 'type': u'jid', - 'action': u'deny', 'value' : fjid, 'child': ['message', 'iq', + new_rule = {'order': str(max_order + 1), 'type': 'jid', + 'action': 'deny', 'value' : fjid, 'child': ['message', 'iq', 'presence-out']} connection.blocked_list.append(new_rule) connection.blocked_contacts.append(fjid)