From 48aefbacdd1d8fa42743b9fdeeb0f4158c5616fe Mon Sep 17 00:00:00 2001 From: Broque Thomas <26755000+Nezreka@users.noreply.github.com> Date: Fri, 8 May 2026 15:51:16 -0700 Subject: [PATCH] Drop redundant `import sys` inside _auto_download_disabled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ruff F811 — `sys` is already imported at module top (line 13). The local `import sys` inside `_auto_download_disabled` shadowed it needlessly. Caught by CI ruff check on the dev-nightly workflow. --- core/youtube_client.py | 1 - 1 file changed, 1 deletion(-) diff --git a/core/youtube_client.py b/core/youtube_client.py index c15f71a2..df910e59 100644 --- a/core/youtube_client.py +++ b/core/youtube_client.py @@ -257,7 +257,6 @@ class YouTubeClient(DownloadSourcePlugin): — which is exactly when registry.py probes is_configured at web_server import) """ - import sys return bool( os.environ.get('SOULSYNC_NO_FFMPEG_DOWNLOAD') or os.environ.get('PYTEST_CURRENT_TEST')