- class DiffCompatVersion[source]¶
- class Differ(a, b, ignore_space=False, compat_version=None)[source]¶
Base class for differs.
- add_interesting_line_regex(name, regex)[source]¶
Registers a regular expression used to look for interesting lines.
All interesting lines found that match the regular expression will be stored and tagged with the given name. Callers can use get_interesting_lines to get the results.
Registers for interesting lines for headers based on filename.
This is a convenience over add_interesting_line_regex that will watch for headers (functions, clases, etc.) for the file type matching the given filename.
- get_interesting_lines(name, is_modified_file)[source]¶
Returns the interesting lines tagged with the given name.