From 158d013a868bc004c39d9491e1c558745ca9c969 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Mon, 17 Sep 2018 23:03:45 +0200 Subject: [PATCH] Fix literal-comparison pylint errors --- gajim/common/connection.py | 2 +- gajim/plugins/pluginmanager.py | 2 +- gajim/remote_control.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gajim/common/connection.py b/gajim/common/connection.py index a6694c6a3..8bd228feb 100644 --- a/gajim/common/connection.py +++ b/gajim/common/connection.py @@ -732,7 +732,7 @@ class Connection(CommonConnection, ConnectionHandlers): return is_form = data[2] conf = data[1] - if data[4] is not '': + if data[4] != '': helpers.replace_dataform_media(conf, data[4]) if self.new_account_form: def _on_register_result(result): diff --git a/gajim/plugins/pluginmanager.py b/gajim/plugins/pluginmanager.py index 167034de9..a6d1e4a33 100644 --- a/gajim/plugins/pluginmanager.py +++ b/gajim/plugins/pluginmanager.py @@ -629,7 +629,7 @@ class PluginManager(metaclass=Singleton): os.path.dirname(file_path)) for option in fields: - if conf.get('info', option) is '': + if conf.get('info', option) == '': raise configparser.NoOptionError(option, 'info') if option == 'description': setattr(module_attr, option, _(conf.get('info', option))) diff --git a/gajim/remote_control.py b/gajim/remote_control.py index 7a65e3726..0b50a0c4d 100644 --- a/gajim/remote_control.py +++ b/gajim/remote_control.py @@ -90,7 +90,7 @@ class Server: args = list(parameters.unpack()) for i, sig in enumerate(self.method_inargs[method_name]): - if sig is 'h': + if sig == 'h': msg = invocation.get_message() fd_list = msg.get_unix_fd_list() args[i] = fd_list.get(args[i])