on master help sign in
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>

commit0810263bdd533bf8aa6e15d6a147a4f550cff740 authordependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> dateThu 12 Aug 2021, 21:50 (5 years ago) parentb1e5ff3
2 files changed+3−3
requirements-dev.txt+1−1 searx/preferences.py+2−2
requirements-dev.txt+1−1
@@ -2,7 +2,7 @@ mock==4.0.3
22nose2[coverage_plugin]==0.10.0
33cov-core==1.15.0
44pycodestyle==2.7.0
5−pylint==2.8.2
5+pylint==2.9.6
66splinter==0.15.0
77transifex-client==0.14.3
88selenium==3.141.0
searx/preferences.py+2−2
@@ -178,7 +178,7 @@ class SearchLanguageSetting(EnumStringSetting):
178178 if data not in self.choices and data != self.value: # pylint: disable=no-member
179179 # hack to give some backwards compatibility with old language cookies
180180 data = str(data).replace('_', '-')
181− lang = data.split('-')[0]
181+ lang = data.split('-', maxsplit=1)[0]
182182 # pylint: disable=no-member
183183 if data in self.choices:
184184 pass
@@ -502,7 +502,7 @@ class Preferences:
502502 """Save cookie in the HTTP reponse obect
503503 """
504504 for user_setting_name, user_setting in self.key_value_settings.items():
505− if self.key_value_settings[user_setting_name].locked:
505+ if user_setting.locked:
506506 continue
507507 user_setting.save(user_setting_name, resp)
508508 self.engines.save(resp)