From 577b0568c31049c2b40984b7c4fd5fddd279f728 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sat, 28 Aug 2021 11:07:49 +0300 Subject: [PATCH] Silence some new pylint warnings. --- daemon/kodi_scan | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon/kodi_scan b/daemon/kodi_scan index 418237c..b23c3dd 100755 --- a/daemon/kodi_scan +++ b/daemon/kodi_scan @@ -25,6 +25,7 @@ def scan(library=None): headers=headers, data=json.dumps(audio_request_data).encode(), ) + # pylint: disable-next=consider-using-with urllib.request.urlopen(req) # nosec elif library == "video": req = urllib.request.Request( @@ -32,6 +33,7 @@ def scan(library=None): headers=headers, data=json.dumps(video_request_data).encode(), ) + # pylint: disable-next=consider-using-with urllib.request.urlopen(req) # nosec else: scan("video") -- GitLab