From bd7b52988c99ef34fd49f52c8a9d335941144450 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Tue, 14 Nov 2017 12:13:03 +0000 Subject: yapf -ir --- poezio/user.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'poezio/user.py') diff --git a/poezio/user.py b/poezio/user.py index 40d042f8..c69d241c 100644 --- a/poezio/user.py +++ b/poezio/user.py @@ -56,13 +56,13 @@ class User(object): if theme.ccg_palette: # use XEP-0392 CCG fg_color = colors.ccg_text_to_color( - theme.ccg_palette, - self.jid.bare if self.jid and self.jid.bare else self.nick - ) + theme.ccg_palette, self.jid.bare + if self.jid and self.jid.bare else self.nick) self.color = fg_color, -1 else: mod = len(theme.LIST_COLOR_NICKNAMES) - nick_pos = int(md5(self.nick.encode('utf-8')).hexdigest(), 16) % mod + nick_pos = int(md5(self.nick.encode('utf-8')).hexdigest(), + 16) % mod self.color = theme.LIST_COLOR_NICKNAMES[nick_pos] def update(self, affiliation, show, status, role): -- cgit v1.2.3