Skip to content

Commit 10d9462

Browse files
cdce8pAA-Turner
andauthored
Update Lib/platform.py
Co-authored-by: Adam Turner <[email protected]>
1 parent 6dbbd12 commit 10d9462

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Lib/platform.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -220,12 +220,10 @@ def libc_ver(executable=None, lib='', version='', chunksize=16384):
220220
continue
221221
if not m:
222222
break
223-
(
224-
libcinit, glibc, glibcversion, so, threads, soversion,
225-
musl, muslversion, musl_so, musl_sover
226-
) = [
227-
s.decode('latin1') if s is not None else s
228-
for s in m.groups()]
223+
decoded_groups = [s.decode('latin1') if s is not None else s
224+
for s in m.groups()]
225+
(libcinit, glibc, glibcversion, so, threads, soversion,
226+
musl, muslversion, musl_so, musl_sover) = decoded_groups
229227
if libcinit and not lib:
230228
lib = 'libc'
231229
elif glibc:

0 commit comments

Comments
 (0)