virtualEnvironment/lib/python2.7/site-packages/coverage/data.py
def combine_parallel_data(self, aliases=None):
        """Combine a number of data files together.

        Treat `self.filename` as a file prefix, and combine the data from all
        of the data files starting with that prefix plus a dot.

        If `aliases` is provided, it's a `PathAliases` object that is used to
        re-map paths to match the local machine's.

        """
        aliases = aliases or PathAliases()
        data_dir, local = os.path.split(self.filename)
        localdot = local + '.'
        for f in os.listdir(data_dir or '.'):
            if f.startswith(localdot):
                full_path = os.path.join(data_dir, f)
                new_lines, new_arcs = self._read_file(full_path)
                for filename, file_data in iitems(new_lines):
                    filename = aliases.map(filename)
                    self.lines.setdefault(filename, {}).update(file_data)
                for filename, file_data in iitems(new_arcs):
                    filename = aliases.map(filename)
                    self.arcs.setdefault(filename, {}).update(file_data)
                if f != local:
                    os.remove(full_path)
def combine_parallel_data(self, aliases=None):
        aliases = aliases or PathAliases()
        data_dir, local = os.path.split(self.filename)
        localdot = local + '.'
        for f in os.listdir(data_dir or '.'):
            if f.startswith(localdot):
                full_path = os.path.join(data_dir, f)
                new_lines, new_arcs = self._read_file(full_path)
                for filename, file_data in iitems(new_lines):
                    filename = aliases.map(filename)
                    self.lines.setdefault(filename, {}).update(file_data)
                for filename, file_data in iitems(new_arcs):
                    filename = aliases.map(filename)
                    self.arcs.setdefault(filename, {}).update(file_data)
                if f != local:
                    os.remove(full_path)
def combine_parallel_data ( self , aliases = None ) : aliases = aliases or PathAliases ( ) data_dir , local = os . path . split ( self . filename ) localdot = local + '.' for f in os . listdir ( data_dir or '.' ) : if f . startswith ( localdot ) : full_path = os . path . join ( data_dir , f ) new_lines , new_arcs = self . _read_file ( full_path ) for filename , file_data in iitems ( new_lines ) : filename = aliases . map ( filename ) self . lines . setdefault ( filename , { } ) . update ( file_data ) for filename , file_data in iitems ( new_arcs ) : filename = aliases . map ( filename ) self . arcs . setdefault ( filename , { } ) . update ( file_data ) if f != local : os . remove ( full_path )
Combine a number of data files together.

        Treat `self.filename` as a file prefix, and combine the data from all
        of the data files starting with that prefix plus a dot.

        If `aliases` is provided, it's a `PathAliases` object that is used to
        re-map paths to match the local machine's.
Combine a number of data files together .