mirror of
https://github.com/ilyakooo0/searx.git
synced 2024-11-28 18:14:53 +03: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:
parent
b1e5ff3cf7
commit
0810263bdd
@ -2,7 +2,7 @@ mock==4.0.3
|
||||
nose2[coverage_plugin]==0.10.0
|
||||
cov-core==1.15.0
|
||||
pycodestyle==2.7.0
|
||||
pylint==2.8.2
|
||||
pylint==2.9.6
|
||||
splinter==0.15.0
|
||||
transifex-client==0.14.3
|
||||
selenium==3.141.0
|
||||
|
@ -178,7 +178,7 @@ class SearchLanguageSetting(EnumStringSetting):
|
||||
if data not in self.choices and data != self.value: # pylint: disable=no-member
|
||||
# hack to give some backwards compatibility with old language cookies
|
||||
data = str(data).replace('_', '-')
|
||||
lang = data.split('-')[0]
|
||||
lang = data.split('-', maxsplit=1)[0]
|
||||
# pylint: disable=no-member
|
||||
if data in self.choices:
|
||||
pass
|
||||
@ -502,7 +502,7 @@ class Preferences:
|
||||
"""Save cookie in the HTTP reponse obect
|
||||
"""
|
||||
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
|
||||
user_setting.save(user_setting_name, resp)
|
||||
self.engines.save(resp)
|
||||
|
Loading…
Reference in New Issue
Block a user