Fix Ruff linting (#14111)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user