def each_cy_in_bento(bento_file='bento.info'):
 with open(bento_file) as f:
  for line in f:
   line = line.strip()
   if line.startswith('Extension:'):
    path = line.lstrip('Extension:').strip()
    (yield path)

def each_cy_in_bento ( bento_file = 'bento.info' ) : with open ( bento_file ) as f : for line in f : line = line . strip ( ) if line . startswith ( 'Extension:' ) : path = line . lstrip ( 'Extension:' ) . strip ( ) ( yield path )
yield path for each cython extension in bento info file .