def _get_gl_version(_lib):
 try:
  return _lib.glGetString(7938).decode('utf-8')
 except Exception:
  return 'unknown'

def _get_gl_version ( _lib ) : try : return _lib . glGetString ( 7938 ) . decode ( 'utf-8' ) except Exception : return 'unknown'
helper to get the gl version string .