massive (preventive) addition of 'u' (unicode) before the strings passed to logging functions
This commit is contained in:
parent
cc829beac7
commit
67ff77e5de
1 changed files with 272 additions and 271 deletions
|
|
@ -155,12 +155,12 @@ class Account(potr.context.Account):
|
|||
trust_data = self.client.otr_data.get('trust', {})
|
||||
for jid_, jid_data in trust_data.iteritems():
|
||||
for fingerprint, trust_level in jid_data.iteritems():
|
||||
log.debug('setting trust for {jid}: [{fingerprint}] = "{trust_level}"'.format(jid=jid_, fingerprint=fingerprint, trust_level=trust_level))
|
||||
log.debug(u'setting trust for {jid}: [{fingerprint}] = "{trust_level}"'.format(jid=jid_, fingerprint=fingerprint, trust_level=trust_level))
|
||||
self.trusts.setdefault(jid.JID(jid_), {})[fingerprint] = trust_level
|
||||
|
||||
def saveTrusts(self):
|
||||
log.debug("saving trusts for {profile}".format(profile=self.client.profile))
|
||||
log.debug("trusts = {}".format(self.client.otr_data['trust']))
|
||||
log.debug(u"saving trusts for {profile}".format(profile=self.client.profile))
|
||||
log.debug(u"trusts = {}".format(self.client.otr_data['trust']))
|
||||
self.client.otr_data.force('trust')
|
||||
|
||||
def setTrust(self, other_jid, fingerprint, trustLevel):
|
||||
|
|
@ -189,7 +189,7 @@ class ContextManager(object):
|
|||
def getContextForUser(self, other):
|
||||
log.debug(u"getContextForUser [%s]" % other)
|
||||
if not other.resource:
|
||||
log.warning("getContextForUser called with a bare jid: %s" % other.full())
|
||||
log.warning(u"getContextForUser called with a bare jid: %s" % other.full())
|
||||
return self.startContext(other)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue