def detect_conf_var():
 f = file(CONF.CCACHE_PATH.get(), 'rb')
 try:
  data = f.read()
  return ('X-CACHECONF:' in data)
 finally:
  f.close()

def detect_conf_var ( ) : f = file ( CONF . CCACHE_PATH . get ( ) , 'rb' ) try : data = f . read ( ) return ( 'X-CACHECONF:' in data ) finally : f . close ( )
return true if the ticket cache contains "conf" information as is found in ticket caches of kerboers 1 .