def get_tree(base, exclude, coverage=the_coverage):
 tree = {}
 runs = coverage.data.executed_files()
 for path in runs:
  if ((not _skip_file(path, exclude)) and (not os.path.isdir(path))):
   _graft(path, tree)
 return tree

def get_tree ( base , exclude , coverage = the_coverage ) : tree = { } runs = coverage . data . executed_files ( ) for path in runs : if ( ( not _skip_file ( path , exclude ) ) and ( not os . path . isdir ( path ) ) ) : _graft ( path , tree ) return tree
return covered module names as a nested dict .