Skip to content

Commit 111e2ec

Browse files
committed
Use more verbose style rather than :=
1 parent 4d6aa92 commit 111e2ec

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Lib/test/support/__init__.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3032,16 +3032,20 @@ def linked_to_musl():
30323032
# emscripten (at least as far as we're concerned) and wasi use musl,
30333033
# but platform doesn't know how to get the version, so set it to zero.
30343034
if is_emscripten or is_wasi:
3035-
return (_linked_to_musl := (0, 0, 0))
3035+
_linked_to_musl = (0, 0, 0)
3036+
return _linked_to_musl
30363037

30373038
# On all other non-linux platforms assume no musl.
30383039
if sys.platform != 'linux':
3039-
return (_linked_to_musl := False)
3040+
_linked_to_musl = False
3041+
return _linked_to_musl
30403042

30413043
# On linux, we'll depend on the platform module to do the check, so new
30423044
# musl platforms should add support in that module if possible.
30433045
import platform
30443046
lib, version = platform.libc_ver()
30453047
if lib != 'musl':
3046-
return (_linked_to_musl := False)
3047-
return (_linked_to_musl := tuple(map(int, version.split('.'))))
3048+
_linked_to_musl = False
3049+
return _linked_to_musl
3050+
_linked_to_musl = tuple(map(int, version.split('.')))
3051+
return _linked_to_musl

0 commit comments

Comments
 (0)