From 4cf7d20600f363460eb99faf7c33e7e201871383 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Sun, 16 Sep 2018 01:19:09 +0200 Subject: [PATCH] Fix len-as-condition pylint error --- gajim/gtk/add_contact.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gajim/gtk/add_contact.py b/gajim/gtk/add_contact.py index 4316a8fed..f0293e913 100644 --- a/gajim/gtk/add_contact.py +++ b/gajim/gtk/add_contact.py @@ -358,7 +358,7 @@ class AddNewContactWindow(Gtk.ApplicationWindow): type_ = model[iter_][2] model = self.protocol_jid_combobox.get_model() model.clear() - if len(self.agents[type_]): + if self.agents[type_]: for jid_ in self.agents[type_]: model.append([jid_]) self.protocol_jid_combobox.set_active(0)