handle empty string in variable executable in platform.libc_ver() (#23140)
This commit is contained in:
parent
11276cd9c4
commit
d9142831ba
|
@ -174,7 +174,7 @@ def libc_ver(executable=None, lib='', version='', chunksize=16384):
|
||||||
The file is read and scanned in chunks of chunksize bytes.
|
The file is read and scanned in chunks of chunksize bytes.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
if executable is None:
|
if not executable:
|
||||||
try:
|
try:
|
||||||
ver = os.confstr('CS_GNU_LIBC_VERSION')
|
ver = os.confstr('CS_GNU_LIBC_VERSION')
|
||||||
# parse 'glibc 2.28' as ('glibc', '2.28')
|
# parse 'glibc 2.28' as ('glibc', '2.28')
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Handle empty string in variable executable in platform.libc_ver()
|
Loading…
Reference in New Issue