From a318338d7f95790f5fe0f749648e8dc45c0bc70a Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 7 Sep 2026 15:58:47 +0200 Subject: [PATCH] Fix some "ruff check" warnings Remove unused import and variables. --- master/custom/builders.py | 1 - master/custom/release_dashboard.py | 7 ++++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/master/custom/builders.py b/master/custom/builders.py index b1a9d73e..78694b53 100644 --- a/master/custom/builders.py +++ b/master/custom/builders.py @@ -46,7 +46,6 @@ Windows64PGOTailcallBuild, Windows64PGONoGilBuild, Windows64PGONoGilTailcallBuild, - Windows64RefleakBuild, Windows64ReleaseBuild, MacOSArmWithBrewBuild, MacOSArmWithBrewNoGilBuild, diff --git a/master/custom/release_dashboard.py b/master/custom/release_dashboard.py index a02b8979..b5bf5bd3 100644 --- a/master/custom/release_dashboard.py +++ b/master/custom/release_dashboard.py @@ -47,7 +47,8 @@ def decorated(*args, **kwargs): raise _WrappedAttributeError(f'your error: {e!r}') return decorated -class _WrappedAttributeError(Exception): pass +class _WrappedAttributeError(Exception): + pass class DashboardObject: @@ -447,9 +448,9 @@ def junit_results(self): # We don't have a logger set up, this returns None on common failures # (meaning failures won't show on the dashboard). # TODO: set up monitoring and log failures (in the whole method). - except OSError as e: + except OSError: return None - except ElementTree.ParseError as e: + except ElementTree.ParseError: return None result = JunitResult(self, {})