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

        `morfs` is a list of modules or filenames.