def get_cert_data(path, content):
 if ((not path) and (not content)):
  return None
 rval = None
 if (path and os.path.exists(path) and os.access(path, os.R_OK)):
  rval = open(path).read()
 elif content:
  rval = content
 return rval

def get_cert_data ( path , content ) : if ( ( not path ) and ( not content ) ) : return None rval = None if ( path and os . path . exists ( path ) and os . access ( path , os . R_OK ) ) : rval = open ( path ) . read ( ) elif content : rval = content return rval
get the data for a particular value .