Skip to content
Snippets Groups Projects
Commit 577b0568 authored by nimrod's avatar nimrod
Browse files

Silence some new pylint warnings.

parent d4a4f9b8
No related branches found
No related tags found
No related merge requests found
Pipeline #2107 passed
...@@ -25,6 +25,7 @@ def scan(library=None): ...@@ -25,6 +25,7 @@ def scan(library=None):
headers=headers, headers=headers,
data=json.dumps(audio_request_data).encode(), data=json.dumps(audio_request_data).encode(),
) )
# pylint: disable-next=consider-using-with
urllib.request.urlopen(req) # nosec urllib.request.urlopen(req) # nosec
elif library == "video": elif library == "video":
req = urllib.request.Request( req = urllib.request.Request(
...@@ -32,6 +33,7 @@ def scan(library=None): ...@@ -32,6 +33,7 @@ def scan(library=None):
headers=headers, headers=headers,
data=json.dumps(video_request_data).encode(), data=json.dumps(video_request_data).encode(),
) )
# pylint: disable-next=consider-using-with
urllib.request.urlopen(req) # nosec urllib.request.urlopen(req) # nosec
else: else:
scan("video") scan("video")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment