Fix Ruff linting (#14111)

This commit is contained in:
Zanie Blue
2025-06-17 12:28:23 -05:00
committed by GitHub
parent 10e1d17cfc
commit c25c800367
9 changed files with 20 additions and 16 deletions
@@ -69,8 +69,7 @@ class ELFFile:
}[(self.capacity, self.encoding)]
except KeyError:
raise ELFInvalid(
f"unrecognized capacity ({self.capacity}) or "
f"encoding ({self.encoding})"
f"unrecognized capacity ({self.capacity}) or encoding ({self.encoding})"
)
try:
@@ -161,8 +161,7 @@ def _parse_glibc_version(version_str: str) -> _GLibCVersion:
m = re.match(r"(?P<major>[0-9]+)\.(?P<minor>[0-9]+)", version_str)
if not m:
warnings.warn(
f"Expected glibc version with 2 components major.minor,"
f" got: {version_str}",
f"Expected glibc version with 2 components major.minor, got: {version_str}",
RuntimeWarning,
)
return _GLibCVersion(-1, -1)