comparison src/plugins/plugin_xep_0095.py @ 1409:3265a2639182

massive (preventive) addition of 'u' (unicode) before the strings passed to logging functions
author souliane <souliane@mailoo.org>
date Thu, 16 Apr 2015 14:57:57 +0200
parents 069ad98b360d
children d04d7402b8e9
comparison
equal deleted inserted replaced
1408:8a7145138330 1409:3265a2639182
180 log.error(_('Asking for an non-existant or not connected profile')) 180 log.error(_('Asking for an non-existant or not connected profile'))
181 return "" 181 return ""
182 182
183 offer = client.IQ(xmlstream, 'set') 183 offer = client.IQ(xmlstream, 'set')
184 sid = str(uuid.uuid4()) 184 sid = str(uuid.uuid4())
185 log.debug(_("Stream Session ID: %s") % offer["id"]) 185 log.debug(_(u"Stream Session ID: %s") % offer["id"])
186 186
187 offer["from"] = current_jid.full() 187 offer["from"] = current_jid.full()
188 offer["to"] = to_jid.full() 188 offer["to"] = to_jid.full()
189 si = offer.addElement('si', NS_SI) 189 si = offer.addElement('si', NS_SI)
190 si['id'] = sid 190 si['id'] = sid