Fix Ruff linting (#14111)
This commit is contained in:
@@ -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