From 35c7e1f0dbbd1a63b608ea06ae80d69f231d6c05 Mon Sep 17 00:00:00 2001 From: mlcommons-bot <74634038+mlcommons-bot@users.noreply.github.com> Date: Tue, 19 Nov 2024 11:47:42 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20synced=20file(s)=20with=20mlcomm?= =?UTF-8?q?ons/power-dev=20(#1918)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🔄 synced local 'tools/submission/power/power_checker.py' with remote 'compliance/check.py' * [Automated Commit] Format Codebase --------- Co-authored-by: mlcommons-bot Co-authored-by: mlcommons-bot Co-authored-by: Mitchelle Rasquinha <80070689+mrasquinha-g@users.noreply.github.com> Co-authored-by: Arjun Suresh Co-authored-by: Arjun Suresh --- tools/submission/power/power_checker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/submission/power/power_checker.py b/tools/submission/power/power_checker.py index 834cd59dd..5a0eb0953 100755 --- a/tools/submission/power/power_checker.py +++ b/tools/submission/power/power_checker.py @@ -90,7 +90,7 @@ class CheckerWarning(Exception): def _normalize(path: str) -> str: allparts: List[str] = [] - while True: + while 1: parts = os.path.split(path) if parts[0] == path: # sentinel for absolute paths allparts.insert(0, parts[0])