def walk_egg(egg_dir):
 walker = os.walk(egg_dir)
 (base, dirs, files) = walker.next()
 if ('EGG-INFO' in dirs):
  dirs.remove('EGG-INFO')
 (yield (base, dirs, files))
 for bdf in walker:
  (yield bdf)

def walk_egg ( egg_dir ) : walker = os . walk ( egg_dir ) ( base , dirs , files ) = walker . next ( ) if ( 'EGG-INFO' in dirs ) : dirs . remove ( 'EGG-INFO' ) ( yield ( base , dirs , files ) ) for bdf in walker : ( yield bdf )
walk an unpacked eggs contents .