mirror of
https://github.com/searxng/searxng.git
synced 2025-07-22 12:49:22 +02:00
[mod] pylint: numerous minor code fixes
This commit is contained in:
parent
9ed3ee2beb
commit
b00d108673
24 changed files with 48 additions and 64 deletions
|
@ -49,11 +49,11 @@ correction_xpath = '//div[@id="did_you_mean"]//a'
|
|||
|
||||
|
||||
# match query's language to a region code that duckduckgo will accept
|
||||
def get_region_code(lang, lang_list=[]):
|
||||
def get_region_code(lang, lang_list=None):
|
||||
if lang == 'all':
|
||||
return None
|
||||
|
||||
lang_code = match_language(lang, lang_list, language_aliases, 'wt-WT')
|
||||
lang_code = match_language(lang, lang_list or [], language_aliases, 'wt-WT')
|
||||
lang_parts = lang_code.split('-')
|
||||
|
||||
# country code goes first
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue