@memoized
def gnu_get_libc_version():
 if (not sys.platform.startswith(u'linux')):
  return None
 from ctypes import CDLL, cdll, c_char_p
 cdll.LoadLibrary(u'libc.so.6')
 libc = CDLL(u'libc.so.6')
 f = libc.gnu_get_libc_version
 f.restype = c_char_p
 result = f()
 if hasattr(result, u'decode'):
  result = result.decode(u'utf-8')
 return result

@ memoized def gnu_get_libc_version ( ) : if ( not sys . platform . startswith ( u'linux' ) ) : return None from ctypes import CDLL , cdll , c_char_p cdll . LoadLibrary ( u'libc.so.6' ) libc = CDLL ( u'libc.so.6' ) f = libc . gnu_get_libc_version f . restype = c_char_p result = f ( ) if hasattr ( result , u'decode' ) : result = result . decode ( u'utf-8' ) return result
if on linux .