Read pattern from string and return an instance of the appropriate implementation class.
(pattern_str, fallback=FnmatchPattern)
| 339 | |
| 340 | |
| 341 | def parse_exclude_pattern(pattern_str, fallback=FnmatchPattern): |
| 342 | """Read pattern from string and return an instance of the appropriate implementation class.""" |
| 343 | epattern_obj = parse_pattern(pattern_str, fallback, recurse_dir=False) |
| 344 | return CmdTuple(epattern_obj, IECommand.ExcludeNoRecurse) |
| 345 | |
| 346 | |
| 347 | def parse_inclexcl_command(cmd_line_str, fallback=ShellPattern): |
no test coverage detected