(patterns, source_list)
| 112 | # Returns a list containing all values of the source_list that |
| 113 | # match at least one of the patterns |
| 114 | def pattern_match(patterns, source_list): |
| 115 | task_names = set() |
| 116 | for pattern in patterns: |
| 117 | if _is_json_task(pattern): |
| 118 | task_names.add(pattern) |
| 119 | |
| 120 | for matching in fnmatch.filter(source_list, pattern): |
| 121 | task_names.add(matching) |
| 122 | return sorted(list(task_names)) |
| 123 | |
| 124 | |
| 125 | def general_detokenize(string): |
nothing calls this directly
no test coverage detected