virtualEnvironment/lib/python2.7/site-packages/coverage/report.py
def find_code_units(self, morfs):
        """Find the code units we'll report on.

        `morfs` is a list of modules or filenames.

        """
        morfs = morfs or self.coverage.data.measured_files()
        file_locator = self.coverage.file_locator
        self.code_units = code_unit_factory(morfs, file_locator)

        if self.config.include:
            patterns = prep_patterns(self.config.include)
            filtered = []
            for cu in self.code_units:
                for pattern in patterns:
                    if fnmatch.fnmatch(cu.filename, pattern):
                        filtered.append(cu)
                        break
            self.code_units = filtered

        if self.config.omit:
            patterns = prep_patterns(self.config.omit)
            filtered = []
            for cu in self.code_units:
                for pattern in patterns:
                    if fnmatch.fnmatch(cu.filename, pattern):
                        break
                else:
                    filtered.append(cu)
            self.code_units = filtered

        self.code_units.sort()
def find_code_units(self, morfs):
        morfs = morfs or self.coverage.data.measured_files()
        file_locator = self.coverage.file_locator
        self.code_units = code_unit_factory(morfs, file_locator)

        if self.config.include:
            patterns = prep_patterns(self.config.include)
            filtered = []
            for cu in self.code_units:
                for pattern in patterns:
                    if fnmatch.fnmatch(cu.filename, pattern):
                        filtered.append(cu)
                        break
            self.code_units = filtered

        if self.config.omit:
            patterns = prep_patterns(self.config.omit)
            filtered = []
            for cu in self.code_units:
                for pattern in patterns:
                    if fnmatch.fnmatch(cu.filename, pattern):
                        break
                else:
                    filtered.append(cu)
            self.code_units = filtered

        self.code_units.sort()
def find_code_units ( self , morfs ) : morfs = morfs or self . coverage . data . measured_files ( ) file_locator = self . coverage . file_locator self . code_units = code_unit_factory ( morfs , file_locator ) if self . config . include : patterns = prep_patterns ( self . config . include ) filtered = [ ] for cu in self . code_units : for pattern in patterns : if fnmatch . fnmatch ( cu . filename , pattern ) : filtered . append ( cu ) break self . code_units = filtered if self . config . omit : patterns = prep_patterns ( self . config . omit ) filtered = [ ] for cu in self . code_units : for pattern in patterns : if fnmatch . fnmatch ( cu . filename , pattern ) : break else : filtered . append ( cu ) self . code_units = filtered self . code_units . sort ( )
Find the code units we'll report on.

        `morfs` is a list of modules or filenames.
Find the code units we ll report on .