mirror of
https://github.com/searx/searx
synced 2024-11-22 01:45:21 +01:00
Bump pylint from 2.14.5 to 2.15.0 (#3353)
* Bump pylint from 2.14.5 to 2.15.0 Bumps [pylint](https://github.com/PyCQA/pylint) from 2.14.5 to 2.15.0. - [Release notes](https://github.com/PyCQA/pylint/releases) - [Commits](https://github.com/PyCQA/pylint/compare/v2.14.5...v2.15.0) --- updated-dependencies: - dependency-name: pylint dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * fix code Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Noémi Ványi <sitbackandwait@gmail.com>
This commit is contained in:
parent
6d40961682
commit
d86cb95560
@ -2,7 +2,7 @@ mock==4.0.3
|
||||
nose2[coverage_plugin]==0.12.0
|
||||
cov-core==1.15.0
|
||||
pycodestyle==2.9.1
|
||||
pylint==2.14.5
|
||||
pylint==2.15.0
|
||||
splinter==0.18.1
|
||||
transifex-client==0.14.3; python_version < '3.10'
|
||||
transifex-client==0.12.5; python_version == '3.10'
|
||||
|
@ -23,6 +23,7 @@ categories = ['music']
|
||||
paging = True
|
||||
api_client_id = None
|
||||
api_client_secret = None
|
||||
timeout = 10.0
|
||||
|
||||
# search-url
|
||||
url = 'https://api.spotify.com/'
|
||||
@ -40,9 +41,10 @@ def request(query, params):
|
||||
|
||||
r = requests.post(
|
||||
'https://accounts.spotify.com/api/token',
|
||||
timeout=timeout,
|
||||
data={'grant_type': 'client_credentials'},
|
||||
headers={'Authorization': 'Basic ' + base64.b64encode(
|
||||
"{}:{}".format(api_client_id, api_client_secret).encode()
|
||||
"{}:{}".format(api_client_id, api_client_secret).encode(),
|
||||
).decode()}
|
||||
)
|
||||
j = loads(r.text)
|
||||
|
@ -30,7 +30,7 @@ HTTP_COLON = 'http:'
|
||||
|
||||
|
||||
def get_bang_url():
|
||||
response = requests.get(URL_BV1)
|
||||
response = requests.get(URL_BV1, timeout=10.0)
|
||||
response.raise_for_status()
|
||||
|
||||
r = RE_BANG_VERSION.findall(response.text)
|
||||
@ -38,7 +38,7 @@ def get_bang_url():
|
||||
|
||||
|
||||
def fetch_ddg_bangs(url):
|
||||
response = requests.get(url)
|
||||
response = requests.get(url, timeout=10.0)
|
||||
response.raise_for_status()
|
||||
return json.loads(response.content.decode())
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user