Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-90548: Make musl test skips smarter (fixes Alpine errors) #131313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Mar 19, 2025
Prev Previous commit
Next Next commit
Prettify re expression using re.VERBOSE.
  • Loading branch information
bitdancer committed Mar 18, 2025
commit 4d6aa920412d760b1e6c86f7d0fcfc0e605cb15a
17 changes: 7 additions & 10 deletions 17 Lib/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,16 +189,13 @@ def libc_ver(executable=None, lib='', version='', chunksize=16384):
# sys.executable is not set.
return lib, version

libc_search = re.compile(
br'(__libc_init)'
br'|'
br'(GLIBC_([0-9.]+))'
br'|'
br'(libc(_\w+)?\.so(?:\.(\d[0-9.]*))?)'
br'|'
br'(musl-([0-9.]+))'
br'',
re.ASCII)
libc_search = re.compile(br"""
(__libc_init)
| (GLIBC_([0-9.]+))
| (libc(_\w+)?\.so(?:\.(\d[0-9.]*))?)
| (musl-([0-9.]+))
""",
re.ASCII | re.VERBOSE)

V = _comparable_version
# We use os.path.realpath()
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.