(patterns, source_list)
| 99 | # Returns a list containing all values of the source_list that |
| 100 | # match at least one of the patterns |
| 101 | def pattern_match(patterns, source_list): |
| 102 | if isinstance(patterns, str): |
| 103 | patterns = [patterns] |
| 104 | |
| 105 | task_names = set() |
| 106 | for pattern in patterns: |
| 107 | for matching in fnmatch.filter(source_list, pattern): |
| 108 | task_names.add(matching) |
| 109 | return sorted(list(task_names)) |
| 110 | |
| 111 | |
| 112 | def general_detokenize(string): |
nothing calls this directly
no outgoing calls
no test coverage detected