Fix literal-comparison pylint errors

This commit is contained in:
Philipp Hörist 2018-09-17 23:03:45 +02:00
parent 76333ec73a
commit 158d013a86
3 changed files with 3 additions and 3 deletions

View File

@ -732,7 +732,7 @@ class Connection(CommonConnection, ConnectionHandlers):
return return
is_form = data[2] is_form = data[2]
conf = data[1] conf = data[1]
if data[4] is not '': if data[4] != '':
helpers.replace_dataform_media(conf, data[4]) helpers.replace_dataform_media(conf, data[4])
if self.new_account_form: if self.new_account_form:
def _on_register_result(result): def _on_register_result(result):

View File

@ -629,7 +629,7 @@ class PluginManager(metaclass=Singleton):
os.path.dirname(file_path)) os.path.dirname(file_path))
for option in fields: for option in fields:
if conf.get('info', option) is '': if conf.get('info', option) == '':
raise configparser.NoOptionError(option, 'info') raise configparser.NoOptionError(option, 'info')
if option == 'description': if option == 'description':
setattr(module_attr, option, _(conf.get('info', option))) setattr(module_attr, option, _(conf.get('info', option)))

View File

@ -90,7 +90,7 @@ class Server:
args = list(parameters.unpack()) args = list(parameters.unpack())
for i, sig in enumerate(self.method_inargs[method_name]): for i, sig in enumerate(self.method_inargs[method_name]):
if sig is 'h': if sig == 'h':
msg = invocation.get_message() msg = invocation.get_message()
fd_list = msg.get_unix_fd_list() fd_list = msg.get_unix_fd_list()
args[i] = fd_list.get(args[i]) args[i] = fd_list.get(args[i])