def find_meta(meta):
 meta_match = re.search('^__{meta}__ = [\'\\"]([^\'\\"]*)[\'\\"]'.format(meta=meta), META_FILE, re.M)
 if meta_match:
  return meta_match.group(1)
 raise RuntimeError('Unable to find __{meta}__ string.'.format(meta=meta))

def find_meta ( meta ) : meta_match = re . search ( '^__{meta}__ = [\'\\"]([^\'\\"]*)[\'\\"]' . format ( meta = meta ) , META_FILE , re . M ) if meta_match : return meta_match . group ( 1 ) raise RuntimeError ( 'Unable to find __{meta}__ string.' . format ( meta = meta ) )
extract __*meta*__ from meta_file .