1
0
mirror of https://github.com/searx/searx synced 2024-12-11 16:35:20 +01:00

Bump pylint from 2.8.2 to 2.9.6 (#2934)

* Bump pylint from 2.8.2 to 2.9.6

Bumps [pylint](https://github.com/PyCQA/pylint) from 2.8.2 to 2.9.6.
- [Release notes](https://github.com/PyCQA/pylint/releases)
- [Changelog](https://github.com/PyCQA/pylint/blob/main/ChangeLog)
- [Commits](https://github.com/PyCQA/pylint/compare/v2.8.2...v2.9.6)

---
updated-dependencies:
- dependency-name: pylint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* update preferences.py to comply with new pep8

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Noémi Ványi <kvch@users.noreply.github.com>
Co-authored-by: Noémi Ványi <sitbackandwait@gmail.com>
This commit is contained in:
dependabot[bot] 2021-08-12 21:50:48 +02:00 committed by GitHub
parent b1e5ff3cf7
commit 0810263bdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ mock==4.0.3
nose2[coverage_plugin]==0.10.0 nose2[coverage_plugin]==0.10.0
cov-core==1.15.0 cov-core==1.15.0
pycodestyle==2.7.0 pycodestyle==2.7.0
pylint==2.8.2 pylint==2.9.6
splinter==0.15.0 splinter==0.15.0
transifex-client==0.14.3 transifex-client==0.14.3
selenium==3.141.0 selenium==3.141.0

View File

@ -178,7 +178,7 @@ class SearchLanguageSetting(EnumStringSetting):
if data not in self.choices and data != self.value: # pylint: disable=no-member if data not in self.choices and data != self.value: # pylint: disable=no-member
# hack to give some backwards compatibility with old language cookies # hack to give some backwards compatibility with old language cookies
data = str(data).replace('_', '-') data = str(data).replace('_', '-')
lang = data.split('-')[0] lang = data.split('-', maxsplit=1)[0]
# pylint: disable=no-member # pylint: disable=no-member
if data in self.choices: if data in self.choices:
pass pass
@ -502,7 +502,7 @@ class Preferences:
"""Save cookie in the HTTP reponse obect """Save cookie in the HTTP reponse obect
""" """
for user_setting_name, user_setting in self.key_value_settings.items(): for user_setting_name, user_setting in self.key_value_settings.items():
if self.key_value_settings[user_setting_name].locked: if user_setting.locked:
continue continue
user_setting.save(user_setting_name, resp) user_setting.save(user_setting_name, resp)
self.engines.save(resp) self.engines.save(resp)