Skip to content

Commit

Permalink
πŸ”„ synced file(s) with mlcommons/power-dev (#1918)
Browse files Browse the repository at this point in the history
* πŸ”„ synced local 'tools/submission/power/power_checker.py' with remote 'compliance/check.py'

* [Automated Commit] Format Codebase

---------

Co-authored-by: mlcommons-bot <null>
Co-authored-by: mlcommons-bot <[email protected]>
Co-authored-by: Mitchelle Rasquinha <[email protected]>
Co-authored-by: Arjun Suresh <[email protected]>
Co-authored-by: Arjun Suresh <[email protected]>
  • Loading branch information
5 people authored Nov 19, 2024
1 parent 61a8a6a commit 35c7e1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/submission/power/power_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 35c7e1f

Please sign in to comment.